~ubuntu-branches/ubuntu/oneiric/couchdb/oneiric

1 by Noah Slater
Import upstream version 0.7.3~svn684
1
#! /bin/sh
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2
# From configure.ac 0.11.0.
1 by Noah Slater
Import upstream version 0.7.3~svn684
3
# Guess values for system-dependent variables and create Makefiles.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4
# Generated by GNU Autoconf 2.64 for Apache CouchDB 0.11.0.
1 by Noah Slater
Import upstream version 0.7.3~svn684
5
#
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
8
# Foundation, Inc.
9
#
1 by Noah Slater
Import upstream version 0.7.3~svn684
10
# This configure script is free software; the Free Software Foundation
11
# gives unlimited permission to copy, distribute and modify it.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12
## -------------------- ##
13
## M4sh Initialization. ##
14
## -------------------- ##
1 by Noah Slater
Import upstream version 0.7.3~svn684
15
16
# Be more Bourne compatible
17
DUALCASE=1; export DUALCASE # for MKS sh
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
18
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
19
  emulate sh
20
  NULLCMD=:
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
21
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1 by Noah Slater
Import upstream version 0.7.3~svn684
22
  # is contrary to our usage.  Disable this feature.
23
  alias -g '${1+"$@"}'='"$@"'
24
  setopt NO_GLOB_SUBST
25
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
26
  case `(set -o) 2>/dev/null` in #(
27
  *posix*) :
28
    set -o posix ;; #(
29
  *) :
30
     ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
31
esac
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
32
fi
33
34
35
as_nl='
36
'
37
export as_nl
38
# Printing a long string crashes Solaris 7 /usr/bin/printf.
39
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
42
# Prefer a ksh shell builtin over an external printf program on Solaris,
43
# but without wasting forks for bash or zsh.
44
if test -z "$BASH_VERSION$ZSH_VERSION" \
45
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46
  as_echo='print -r --'
47
  as_echo_n='print -rn --'
48
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
49
  as_echo='printf %s\n'
50
  as_echo_n='printf %s'
51
else
52
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54
    as_echo_n='/usr/ucb/echo -n'
55
  else
56
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57
    as_echo_n_body='eval
58
      arg=$1;
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
59
      case $arg in #(
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
60
      *"$as_nl"*)
61
	expr "X$arg" : "X\\(.*\\)$as_nl";
62
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
      esac;
64
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65
    '
66
    export as_echo_n_body
67
    as_echo_n='sh -c $as_echo_n_body as_echo'
68
  fi
69
  export as_echo_body
70
  as_echo='sh -c $as_echo_body as_echo'
71
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
72
73
# The user is always right.
74
if test "${PATH_SEPARATOR+set}" != set; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
75
  PATH_SEPARATOR=:
76
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78
      PATH_SEPARATOR=';'
79
  }
1 by Noah Slater
Import upstream version 0.7.3~svn684
80
fi
81
82
83
# IFS
84
# We need space, tab and new line, in precisely that order.  Quoting is
85
# there to prevent editors from complaining about space-tab.
86
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
87
# splitting by setting IFS to empty value.)
88
IFS=" ""	$as_nl"
89
90
# Find who we are.  Look in the path if we contain no directory separator.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
91
case $0 in #((
1 by Noah Slater
Import upstream version 0.7.3~svn684
92
  *[\\/]* ) as_myself=$0 ;;
93
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94
for as_dir in $PATH
95
do
96
  IFS=$as_save_IFS
97
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
98
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
100
IFS=$as_save_IFS
101
102
     ;;
103
esac
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
105
# in which case we are not to be found in the path.
106
if test "x$as_myself" = x; then
107
  as_myself=$0
108
fi
109
if test ! -f "$as_myself"; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
110
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
111
  exit 1
1 by Noah Slater
Import upstream version 0.7.3~svn684
112
fi
113
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
114
# Unset variables that we do not need and which cause bugs (e.g. in
115
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116
# suppresses any "Segmentation fault" message there.  '((' could
117
# trigger a bug in pdksh 5.2.14.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1 by Noah Slater
Import upstream version 0.7.3~svn684
121
done
122
PS1='$ '
123
PS2='> '
124
PS4='+ '
125
126
# NLS nuisances.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
127
LC_ALL=C
128
export LC_ALL
129
LANGUAGE=C
130
export LANGUAGE
1 by Noah Slater
Import upstream version 0.7.3~svn684
131
132
# CDPATH.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1 by Noah Slater
Import upstream version 0.7.3~svn684
134
135
if test "x$CONFIG_SHELL" = x; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
136
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
137
  emulate sh
138
  NULLCMD=:
139
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
140
  # is contrary to our usage.  Disable this feature.
141
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
142
  setopt NO_GLOB_SUBST
143
else
144
  case \`(set -o) 2>/dev/null\` in #(
145
  *posix*) :
146
    set -o posix ;; #(
147
  *) :
148
     ;;
149
esac
150
fi
151
"
152
  as_required="as_fn_return () { (exit \$1); }
153
as_fn_success () { as_fn_return 0; }
154
as_fn_failure () { as_fn_return 1; }
155
as_fn_ret_success () { return 0; }
156
as_fn_ret_failure () { return 1; }
157
158
exitcode=0
159
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
160
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
161
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
162
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
163
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164
165
else
166
  exitcode=1; echo positional parameters were not saved.
167
fi
168
test x\$exitcode = x0 || exit 1"
169
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173
test \$(( 1 + 1 )) = 2 || exit 1"
174
  if (eval "$as_required") 2>/dev/null; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
175
  as_have_required=yes
176
else
177
  as_have_required=no
178
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
179
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181
else
182
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183
as_found=false
1 by Noah Slater
Import upstream version 0.7.3~svn684
184
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185
do
186
  IFS=$as_save_IFS
187
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
188
  as_found=:
189
  case $as_dir in #(
1 by Noah Slater
Import upstream version 0.7.3~svn684
190
	 /*)
191
	   for as_base in sh bash ksh sh5; do
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
192
	     # Try only shells that exist, to save several forks.
193
	     as_shell=$as_dir/$as_base
194
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196
  CONFIG_SHELL=$as_shell as_have_required=yes
197
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198
  break 2
199
fi
200
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
201
	   done;;
202
       esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
203
  as_found=false
1 by Noah Slater
Import upstream version 0.7.3~svn684
204
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
205
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207
  CONFIG_SHELL=$SHELL as_have_required=yes
208
fi; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
209
IFS=$as_save_IFS
210
211
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
212
      if test "x$CONFIG_SHELL" != x; then :
213
  # We cannot yet assume a decent shell, so we have to provide a
214
	# neutralization value for shells without unset; and this also
215
	# works around shells that cannot unset nonexistent variables.
216
	BASH_ENV=/dev/null
217
	ENV=/dev/null
218
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
219
	export CONFIG_SHELL
220
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221
fi
222
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
223
    if test x$as_have_required = xno; then :
224
  $as_echo "$0: This script requires a shell more modern than all"
225
  $as_echo "$0: the shells that I found on your system."
226
  if test x${ZSH_VERSION+set} = xset ; then
227
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229
  else
230
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
231
$0: including any error possibly output before this
232
$0: message. Then install a modern shell, or manually run
233
$0: the script under such a shell if you do have one."
234
  fi
235
  exit 1
236
fi
237
fi
238
fi
239
SHELL=${CONFIG_SHELL-/bin/sh}
240
export SHELL
241
# Unset more variables known to interfere with behavior of common tools.
242
CLICOLOR_FORCE= GREP_OPTIONS=
243
unset CLICOLOR_FORCE GREP_OPTIONS
244
245
## --------------------- ##
246
## M4sh Shell Functions. ##
247
## --------------------- ##
248
# as_fn_unset VAR
249
# ---------------
250
# Portably unset VAR.
251
as_fn_unset ()
252
{
253
  { eval $1=; unset $1;}
254
}
255
as_unset=as_fn_unset
256
257
# as_fn_set_status STATUS
258
# -----------------------
259
# Set $? to STATUS, without forking.
260
as_fn_set_status ()
261
{
262
  return $1
263
} # as_fn_set_status
264
265
# as_fn_exit STATUS
266
# -----------------
267
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
268
as_fn_exit ()
269
{
270
  set +e
271
  as_fn_set_status $1
272
  exit $1
273
} # as_fn_exit
274
275
# as_fn_mkdir_p
276
# -------------
277
# Create "$as_dir" as a directory, including parents if necessary.
278
as_fn_mkdir_p ()
279
{
280
281
  case $as_dir in #(
282
  -*) as_dir=./$as_dir;;
283
  esac
284
  test -d "$as_dir" || eval $as_mkdir_p || {
285
    as_dirs=
286
    while :; do
287
      case $as_dir in #(
288
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
289
      *) as_qdir=$as_dir;;
290
      esac
291
      as_dirs="'$as_qdir' $as_dirs"
292
      as_dir=`$as_dirname -- "$as_dir" ||
293
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
294
	 X"$as_dir" : 'X\(//\)[^/]' \| \
295
	 X"$as_dir" : 'X\(//\)$' \| \
296
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
297
$as_echo X"$as_dir" |
298
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
299
	    s//\1/
300
	    q
301
	  }
302
	  /^X\(\/\/\)[^/].*/{
303
	    s//\1/
304
	    q
305
	  }
306
	  /^X\(\/\/\)$/{
307
	    s//\1/
308
	    q
309
	  }
310
	  /^X\(\/\).*/{
311
	    s//\1/
312
	    q
313
	  }
314
	  s/.*/./; q'`
315
      test -d "$as_dir" && break
316
    done
317
    test -z "$as_dirs" || eval "mkdir $as_dirs"
318
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
319
320
321
} # as_fn_mkdir_p
322
# as_fn_append VAR VALUE
323
# ----------------------
324
# Append the text in VALUE to the end of the definition contained in VAR. Take
325
# advantage of any shell optimizations that allow amortized linear growth over
326
# repeated appends, instead of the typical quadratic growth present in naive
327
# implementations.
328
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
329
  eval 'as_fn_append ()
330
  {
331
    eval $1+=\$2
332
  }'
333
else
334
  as_fn_append ()
335
  {
336
    eval $1=\$$1\$2
337
  }
338
fi # as_fn_append
339
340
# as_fn_arith ARG...
341
# ------------------
342
# Perform arithmetic evaluation on the ARGs, and store the result in the
343
# global $as_val. Take advantage of shells that can avoid forks. The arguments
344
# must be portable across $(()) and expr.
345
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
346
  eval 'as_fn_arith ()
347
  {
348
    as_val=$(( $* ))
349
  }'
350
else
351
  as_fn_arith ()
352
  {
353
    as_val=`expr "$@" || test $? -eq 1`
354
  }
355
fi # as_fn_arith
356
357
358
# as_fn_error ERROR [LINENO LOG_FD]
359
# ---------------------------------
360
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
362
# script with status $?, using 1 if that was 0.
363
as_fn_error ()
364
{
365
  as_status=$?; test $as_status -eq 0 && as_status=1
366
  if test "$3"; then
367
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369
  fi
370
  $as_echo "$as_me: error: $1" >&2
371
  as_fn_exit $as_status
372
} # as_fn_error
373
374
if expr a : '\(a\)' >/dev/null 2>&1 &&
375
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
376
  as_expr=expr
377
else
378
  as_expr=false
379
fi
380
381
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
382
  as_basename=basename
383
else
384
  as_basename=false
385
fi
386
387
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
388
  as_dirname=dirname
389
else
390
  as_dirname=false
391
fi
392
393
as_me=`$as_basename -- "$0" ||
394
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
395
	 X"$0" : 'X\(//\)$' \| \
396
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397
$as_echo X/"$0" |
398
    sed '/^.*\/\([^/][^/]*\)\/*$/{
399
	    s//\1/
400
	    q
401
	  }
402
	  /^X\/\(\/\/\)$/{
403
	    s//\1/
404
	    q
405
	  }
406
	  /^X\/\(\/\).*/{
407
	    s//\1/
408
	    q
409
	  }
410
	  s/.*/./; q'`
411
412
# Avoid depending upon Character Ranges.
413
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
414
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
415
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
416
as_cr_digits='0123456789'
417
as_cr_alnum=$as_cr_Letters$as_cr_digits
418
419
420
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
421
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
422
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
423
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
424
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1 by Noah Slater
Import upstream version 0.7.3~svn684
425
  sed -n '
426
    p
427
    /[$]LINENO/=
428
  ' <$as_myself |
429
    sed '
430
      s/[$]LINENO.*/&-/
431
      t lineno
432
      b
433
      :lineno
434
      N
435
      :loop
436
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
437
      t loop
438
      s/-\n.*//
439
    ' >$as_me.lineno &&
440
  chmod +x "$as_me.lineno" ||
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
441
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
442
443
  # Don't try to exec as it changes $[0], causing all sort of problems
444
  # (the dirname of $[0] is not the place where we might find the
445
  # original and so on.  Autoconf is especially sensitive to this).
446
  . "./$as_me.lineno"
447
  # Exit status is that of the last command.
448
  exit
449
}
450
451
ECHO_C= ECHO_N= ECHO_T=
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
452
case `echo -n x` in #(((((
1 by Noah Slater
Import upstream version 0.7.3~svn684
453
-n*)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
454
  case `echo 'xy\c'` in
1 by Noah Slater
Import upstream version 0.7.3~svn684
455
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
456
  xy)  ECHO_C='\c';;
457
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
458
       ECHO_T='	';;
1 by Noah Slater
Import upstream version 0.7.3~svn684
459
  esac;;
460
*)
461
  ECHO_N='-n';;
462
esac
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
463
1 by Noah Slater
Import upstream version 0.7.3~svn684
464
rm -f conf$$ conf$$.exe conf$$.file
465
if test -d conf$$.dir; then
466
  rm -f conf$$.dir/conf$$.file
467
else
468
  rm -f conf$$.dir
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
469
  mkdir conf$$.dir 2>/dev/null
1 by Noah Slater
Import upstream version 0.7.3~svn684
470
fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
471
if (echo >conf$$.file) 2>/dev/null; then
472
  if ln -s conf$$.file conf$$ 2>/dev/null; then
473
    as_ln_s='ln -s'
474
    # ... but there are two gotchas:
475
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
476
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
477
    # In both cases, we have to default to `cp -p'.
478
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479
      as_ln_s='cp -p'
480
  elif ln conf$$.file conf$$ 2>/dev/null; then
481
    as_ln_s=ln
482
  else
1 by Noah Slater
Import upstream version 0.7.3~svn684
483
    as_ln_s='cp -p'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
484
  fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
485
else
486
  as_ln_s='cp -p'
487
fi
488
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489
rmdir conf$$.dir 2>/dev/null
490
491
if mkdir -p . 2>/dev/null; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
492
  as_mkdir_p='mkdir -p "$as_dir"'
1 by Noah Slater
Import upstream version 0.7.3~svn684
493
else
494
  test -d ./-p && rmdir ./-p
495
  as_mkdir_p=false
496
fi
497
498
if test -x / >/dev/null 2>&1; then
499
  as_test_x='test -x'
500
else
501
  if ls -dL / >/dev/null 2>&1; then
502
    as_ls_L_option=L
503
  else
504
    as_ls_L_option=
505
  fi
506
  as_test_x='
507
    eval sh -c '\''
508
      if test -d "$1"; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
509
	test -d "$1/.";
1 by Noah Slater
Import upstream version 0.7.3~svn684
510
      else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
511
	case $1 in #(
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
512
	-*)set "./$1";;
1 by Noah Slater
Import upstream version 0.7.3~svn684
513
	esac;
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
514
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1 by Noah Slater
Import upstream version 0.7.3~svn684
515
	???[sx]*):;;*)false;;esac;fi
516
    '\'' sh
517
  '
518
fi
519
as_executable_p=$as_test_x
520
521
# Sed expression to map a string onto a valid CPP name.
522
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523
524
# Sed expression to map a string onto a valid variable name.
525
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526
527
528
529
# Check that we are running under the correct shell.
530
SHELL=${CONFIG_SHELL-/bin/sh}
531
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
532
case X$lt_ECHO in
1 by Noah Slater
Import upstream version 0.7.3~svn684
533
X*--fallback-echo)
534
  # Remove one level of quotation (which was required for Make).
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
535
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
1 by Noah Slater
Import upstream version 0.7.3~svn684
536
  ;;
537
esac
538
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
539
ECHO=${lt_ECHO-echo}
1 by Noah Slater
Import upstream version 0.7.3~svn684
540
if test "X$1" = X--no-reexec; then
541
  # Discard the --no-reexec flag, and continue.
542
  shift
543
elif test "X$1" = X--fallback-echo; then
544
  # Avoid inline document here, it may be left over
545
  :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
546
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
547
  # Yippee, $ECHO works!
1 by Noah Slater
Import upstream version 0.7.3~svn684
548
  :
549
else
550
  # Restart under the correct shell.
551
  exec $SHELL "$0" --no-reexec ${1+"$@"}
552
fi
553
554
if test "X$1" = X--fallback-echo; then
555
  # used as fallback echo
556
  shift
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
557
  cat <<_LT_EOF
1 by Noah Slater
Import upstream version 0.7.3~svn684
558
$*
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
559
_LT_EOF
1 by Noah Slater
Import upstream version 0.7.3~svn684
560
  exit 0
561
fi
562
563
# The HP-UX ksh and POSIX shell print the target directory to stdout
564
# if CDPATH is set.
565
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
567
if test -z "$lt_ECHO"; then
568
  if test "X${echo_test_string+set}" != Xset; then
569
    # find a string as large as possible, as long as the shell can cope with it
570
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
571
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
572
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
573
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
574
      then
575
        break
576
      fi
577
    done
578
  fi
579
580
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
581
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
582
     test "X$echo_testing_string" = "X$echo_test_string"; then
583
    :
584
  else
585
    # The Solaris, AIX, and Digital Unix default echo programs unquote
586
    # backslashes.  This makes it impossible to quote backslashes using
587
    #   echo "$something" | sed 's/\\/\\\\/g'
588
    #
589
    # So, first we look for a working echo in the user's PATH.
590
591
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
592
    for dir in $PATH /usr/ucb; do
593
      IFS="$lt_save_ifs"
594
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
595
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
596
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
597
         test "X$echo_testing_string" = "X$echo_test_string"; then
598
        ECHO="$dir/echo"
599
        break
600
      fi
601
    done
1 by Noah Slater
Import upstream version 0.7.3~svn684
602
    IFS="$lt_save_ifs"
603
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
604
    if test "X$ECHO" = Xecho; then
605
      # We didn't find a better echo, so look for alternatives.
606
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
607
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
608
         test "X$echo_testing_string" = "X$echo_test_string"; then
609
        # This shell has a builtin print -r that does the trick.
610
        ECHO='print -r'
611
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
612
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
613
        # If we have ksh, try running configure again with it.
614
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
615
        export ORIGINAL_CONFIG_SHELL
616
        CONFIG_SHELL=/bin/ksh
617
        export CONFIG_SHELL
618
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
1 by Noah Slater
Import upstream version 0.7.3~svn684
619
      else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
620
        # Try using printf.
621
        ECHO='printf %s\n'
622
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
623
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
624
	   test "X$echo_testing_string" = "X$echo_test_string"; then
625
	  # Cool, printf works
626
	  :
627
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
628
	     test "X$echo_testing_string" = 'X\t' &&
629
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
630
	     test "X$echo_testing_string" = "X$echo_test_string"; then
631
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632
	  export CONFIG_SHELL
633
	  SHELL="$CONFIG_SHELL"
634
	  export SHELL
635
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
636
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637
	     test "X$echo_testing_string" = 'X\t' &&
638
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639
	     test "X$echo_testing_string" = "X$echo_test_string"; then
640
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641
        else
642
	  # maybe with a smaller string...
643
	  prev=:
644
645
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
646
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
647
	    then
648
	      break
649
	    fi
650
	    prev="$cmd"
651
	  done
652
653
	  if test "$prev" != 'sed 50q "$0"'; then
654
	    echo_test_string=`eval $prev`
655
	    export echo_test_string
656
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657
	  else
658
	    # Oops.  We lost completely, so just stick with echo.
659
	    ECHO=echo
1 by Noah Slater
Import upstream version 0.7.3~svn684
660
	  fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
661
        fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
662
      fi
663
    fi
664
  fi
665
fi
666
667
# Copy echo and quote the copy suitably for passing to libtool from
668
# the Makefile, instead of quoting the original, which is used later.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
669
lt_ECHO=$ECHO
670
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
671
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1 by Noah Slater
Import upstream version 0.7.3~svn684
672
fi
673
674
675
676
677
exec 7<&0 </dev/null 6>&1
678
679
# Name of the host.
680
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
681
# so uname gets run too.
682
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
683
684
#
685
# Initializations.
686
#
687
ac_default_prefix=/usr/local
688
ac_clean_files=
689
ac_config_libobj_dir=.
690
LIBOBJS=
691
cross_compiling=no
692
subdirs=
693
MFLAGS=
694
MAKEFLAGS=
695
696
# Identity of this package.
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
697
PACKAGE_NAME='Apache CouchDB'
1.1.2 by Noah Slater
Import upstream version 0.8.0
698
PACKAGE_TARNAME='apache-couchdb'
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
699
PACKAGE_VERSION='0.11.0'
700
PACKAGE_STRING='Apache CouchDB 0.11.0'
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
701
PACKAGE_BUGREPORT=''
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
702
PACKAGE_URL=''
1 by Noah Slater
Import upstream version 0.7.3~svn684
703
1.1.2 by Noah Slater
Import upstream version 0.8.0
704
ac_unique_file="CHANGES"
1 by Noah Slater
Import upstream version 0.7.3~svn684
705
# Factoring default headers for most tests.
706
ac_includes_default="\
707
#include <stdio.h>
708
#ifdef HAVE_SYS_TYPES_H
709
# include <sys/types.h>
710
#endif
711
#ifdef HAVE_SYS_STAT_H
712
# include <sys/stat.h>
713
#endif
714
#ifdef STDC_HEADERS
715
# include <stdlib.h>
716
# include <stddef.h>
717
#else
718
# ifdef HAVE_STDLIB_H
719
#  include <stdlib.h>
720
# endif
721
#endif
722
#ifdef HAVE_STRING_H
723
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
724
#  include <memory.h>
725
# endif
726
# include <string.h>
727
#endif
728
#ifdef HAVE_STRINGS_H
729
# include <strings.h>
730
#endif
731
#ifdef HAVE_INTTYPES_H
732
# include <inttypes.h>
733
#endif
734
#ifdef HAVE_STDINT_H
735
# include <stdint.h>
736
#endif
737
#ifdef HAVE_UNISTD_H
738
# include <unistd.h>
739
#endif"
740
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
741
ac_subst_vars='am__EXEEXT_FALSE
742
am__EXEEXT_TRUE
743
LTLIBOBJS
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
744
LIBOBJS
745
abs_top_builddir
746
abs_top_srcdir
747
localerlanglibdir
748
locallibbindir
749
localstaterundir
750
localstatelogdir
751
localstatelibdir
752
locallibdir
753
localdocdir
754
localdatadir
755
localconfdir
756
bug_uri
757
version_release
758
version_stage
759
version_revision
760
version_minor
761
version_major
762
version
763
package_name
764
package_tarname
765
package_identifier
766
package_author_address
767
package_author_name
768
HELP2MAN_FALSE
769
HELP2MAN_TRUE
770
LAUNCHD_FALSE
771
LAUNCHD_TRUE
772
INIT_FALSE
773
INIT_TRUE
774
launchddir
775
initdir
776
HELP2MAN_EXECUTABLE
777
ERLC
778
ERL
779
CURL_LDFLAGS
780
CURL_LIBS
781
CURL_CFLAGS
782
CURL_CONFIG
783
ICU_LOCAL_BIN
784
ICU_LOCAL_LDFLAGS
785
ICU_LOCAL_CFLAGS
786
ICU_LIBS
787
ICU_CXXFLAGS
788
ICU_CFLAGS
789
ICU_CONFIG
1.2.4 by Elliot Murphy
Import upstream version 0.10.0~svn813472
790
JSLIB
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
791
msvc_redist_name
792
msvc_redist_dir
793
INNO_COMPILER_EXECUTABLE
794
openssl_bin_dir
795
JS_LIB_BINARY
796
JS_LIB_BASE
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
797
WINDOWS_FALSE
798
WINDOWS_TRUE
799
FLAGS
800
ERLC_FLAGS
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
801
JS_LIB_DIR
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
802
OTOOL64
803
OTOOL
804
LIPO
805
NMEDIT
806
DSYMUTIL
807
lt_ECHO
808
RANLIB
809
AR
810
OBJDUMP
811
LN_S
812
NM
813
ac_ct_DUMPBIN
814
DUMPBIN
815
LD
816
FGREP
817
SED
818
host_os
819
host_vendor
820
host_cpu
821
host
822
build_os
823
build_vendor
824
build_cpu
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
825
build
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
826
LIBTOOL
827
EGREP
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
828
GREP
1 by Noah Slater
Import upstream version 0.7.3~svn684
829
CPP
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
830
am__fastdepCC_FALSE
831
am__fastdepCC_TRUE
832
CCDEPMODE
833
AMDEPBACKSLASH
834
AMDEP_FALSE
835
AMDEP_TRUE
836
am__quote
837
am__include
838
DEPDIR
839
OBJEXT
840
EXEEXT
841
ac_ct_CC
842
CPPFLAGS
843
LDFLAGS
844
CFLAGS
845
CC
846
am__untar
847
am__tar
848
AMTAR
849
am__leading_dot
850
SET_MAKE
851
AWK
852
mkdir_p
853
MKDIR_P
854
INSTALL_STRIP_PROGRAM
855
STRIP
856
install_sh
857
MAKEINFO
858
AUTOHEADER
859
AUTOMAKE
860
AUTOCONF
861
ACLOCAL
862
VERSION
863
PACKAGE
864
CYGPATH_W
865
am__isrc
866
INSTALL_DATA
867
INSTALL_SCRIPT
868
INSTALL_PROGRAM
869
target_alias
870
host_alias
871
build_alias
872
LIBS
873
ECHO_T
874
ECHO_N
875
ECHO_C
876
DEFS
877
mandir
878
localedir
879
libdir
880
psdir
881
pdfdir
882
dvidir
883
htmldir
884
infodir
885
docdir
886
oldincludedir
887
includedir
888
localstatedir
889
sharedstatedir
890
sysconfdir
891
datadir
892
datarootdir
893
libexecdir
894
sbindir
895
bindir
896
program_transform_name
897
prefix
898
exec_prefix
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
899
PACKAGE_URL
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
900
PACKAGE_BUGREPORT
901
PACKAGE_STRING
902
PACKAGE_VERSION
903
PACKAGE_TARNAME
904
PACKAGE_NAME
905
PATH_SEPARATOR
906
SHELL'
1 by Noah Slater
Import upstream version 0.7.3~svn684
907
ac_subst_files=''
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
908
ac_user_opts='
909
enable_option_checking
910
enable_dependency_tracking
911
enable_shared
912
enable_static
913
with_pic
914
enable_fast_install
915
with_gnu_ld
916
enable_libtool_lock
917
with_erlang
918
with_js_include
919
with_js_lib
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
920
with_openssl_bin_dir
921
with_msvc_redist_dir
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
922
with_win32_icu_binaries
923
with_win32_curl
924
enable_init
925
enable_launchd
926
'
1 by Noah Slater
Import upstream version 0.7.3~svn684
927
      ac_precious_vars='build_alias
928
host_alias
929
target_alias
930
CC
931
CFLAGS
932
LDFLAGS
933
LIBS
934
CPPFLAGS
935
CPP
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
936
ERLC_FLAGS
1.2.1 by Noah Slater
Import upstream version 0.9.0
937
FLAGS
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
938
ERL
939
ERLC
1 by Noah Slater
Import upstream version 0.7.3~svn684
940
HELP2MAN_EXECUTABLE'
941
942
943
# Initialize some variables set by options.
944
ac_init_help=
945
ac_init_version=false
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
946
ac_unrecognized_opts=
947
ac_unrecognized_sep=
1 by Noah Slater
Import upstream version 0.7.3~svn684
948
# The variables have the same names as the options, with
949
# dashes changed to underlines.
950
cache_file=/dev/null
951
exec_prefix=NONE
952
no_create=
953
no_recursion=
954
prefix=NONE
955
program_prefix=NONE
956
program_suffix=NONE
957
program_transform_name=s,x,x,
958
silent=
959
site=
960
srcdir=
961
verbose=
962
x_includes=NONE
963
x_libraries=NONE
964
965
# Installation directory options.
966
# These are left unexpanded so users can "make install exec_prefix=/foo"
967
# and all the variables that are supposed to be based on exec_prefix
968
# by default will actually change.
969
# Use braces instead of parens because sh, perl, etc. also accept them.
970
# (The list follows the same order as the GNU Coding Standards.)
971
bindir='${exec_prefix}/bin'
972
sbindir='${exec_prefix}/sbin'
973
libexecdir='${exec_prefix}/libexec'
974
datarootdir='${prefix}/share'
975
datadir='${datarootdir}'
976
sysconfdir='${prefix}/etc'
977
sharedstatedir='${prefix}/com'
978
localstatedir='${prefix}/var'
979
includedir='${prefix}/include'
980
oldincludedir='/usr/include'
981
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982
infodir='${datarootdir}/info'
983
htmldir='${docdir}'
984
dvidir='${docdir}'
985
pdfdir='${docdir}'
986
psdir='${docdir}'
987
libdir='${exec_prefix}/lib'
988
localedir='${datarootdir}/locale'
989
mandir='${datarootdir}/man'
990
991
ac_prev=
992
ac_dashdash=
993
for ac_option
994
do
995
  # If the previous option needs an argument, assign it.
996
  if test -n "$ac_prev"; then
997
    eval $ac_prev=\$ac_option
998
    ac_prev=
999
    continue
1000
  fi
1001
1002
  case $ac_option in
1003
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004
  *)	ac_optarg=yes ;;
1005
  esac
1006
1007
  # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009
  case $ac_dashdash$ac_option in
1010
  --)
1011
    ac_dashdash=yes ;;
1012
1013
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014
    ac_prev=bindir ;;
1015
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016
    bindir=$ac_optarg ;;
1017
1018
  -build | --build | --buil | --bui | --bu)
1019
    ac_prev=build_alias ;;
1020
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021
    build_alias=$ac_optarg ;;
1022
1023
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1024
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025
    ac_prev=cache_file ;;
1026
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028
    cache_file=$ac_optarg ;;
1029
1030
  --config-cache | -C)
1031
    cache_file=config.cache ;;
1032
1033
  -datadir | --datadir | --datadi | --datad)
1034
    ac_prev=datadir ;;
1035
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036
    datadir=$ac_optarg ;;
1037
1038
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039
  | --dataroo | --dataro | --datar)
1040
    ac_prev=datarootdir ;;
1041
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043
    datarootdir=$ac_optarg ;;
1044
1045
  -disable-* | --disable-*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1046
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1 by Noah Slater
Import upstream version 0.7.3~svn684
1047
    # Reject names that are not valid shell variable names.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1048
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1049
      as_fn_error "invalid feature name: $ac_useropt"
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1050
    ac_useropt_orig=$ac_useropt
1051
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052
    case $ac_user_opts in
1053
      *"
1054
"enable_$ac_useropt"
1055
"*) ;;
1056
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057
	 ac_unrecognized_sep=', ';;
1058
    esac
1059
    eval enable_$ac_useropt=no ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
1060
1061
  -docdir | --docdir | --docdi | --doc | --do)
1062
    ac_prev=docdir ;;
1063
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064
    docdir=$ac_optarg ;;
1065
1066
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067
    ac_prev=dvidir ;;
1068
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069
    dvidir=$ac_optarg ;;
1070
1071
  -enable-* | --enable-*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1072
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1 by Noah Slater
Import upstream version 0.7.3~svn684
1073
    # Reject names that are not valid shell variable names.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1074
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1075
      as_fn_error "invalid feature name: $ac_useropt"
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1076
    ac_useropt_orig=$ac_useropt
1077
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078
    case $ac_user_opts in
1079
      *"
1080
"enable_$ac_useropt"
1081
"*) ;;
1082
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083
	 ac_unrecognized_sep=', ';;
1084
    esac
1085
    eval enable_$ac_useropt=\$ac_optarg ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
1086
1087
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089
  | --exec | --exe | --ex)
1090
    ac_prev=exec_prefix ;;
1091
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093
  | --exec=* | --exe=* | --ex=*)
1094
    exec_prefix=$ac_optarg ;;
1095
1096
  -gas | --gas | --ga | --g)
1097
    # Obsolete; use --with-gas.
1098
    with_gas=yes ;;
1099
1100
  -help | --help | --hel | --he | -h)
1101
    ac_init_help=long ;;
1102
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103
    ac_init_help=recursive ;;
1104
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105
    ac_init_help=short ;;
1106
1107
  -host | --host | --hos | --ho)
1108
    ac_prev=host_alias ;;
1109
  -host=* | --host=* | --hos=* | --ho=*)
1110
    host_alias=$ac_optarg ;;
1111
1112
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113
    ac_prev=htmldir ;;
1114
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115
  | --ht=*)
1116
    htmldir=$ac_optarg ;;
1117
1118
  -includedir | --includedir | --includedi | --included | --include \
1119
  | --includ | --inclu | --incl | --inc)
1120
    ac_prev=includedir ;;
1121
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1123
    includedir=$ac_optarg ;;
1124
1125
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1126
    ac_prev=infodir ;;
1127
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128
    infodir=$ac_optarg ;;
1129
1130
  -libdir | --libdir | --libdi | --libd)
1131
    ac_prev=libdir ;;
1132
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133
    libdir=$ac_optarg ;;
1134
1135
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136
  | --libexe | --libex | --libe)
1137
    ac_prev=libexecdir ;;
1138
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139
  | --libexe=* | --libex=* | --libe=*)
1140
    libexecdir=$ac_optarg ;;
1141
1142
  -localedir | --localedir | --localedi | --localed | --locale)
1143
    ac_prev=localedir ;;
1144
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145
    localedir=$ac_optarg ;;
1146
1147
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1148
  | --localstate | --localstat | --localsta | --localst | --locals)
1149
    ac_prev=localstatedir ;;
1150
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152
    localstatedir=$ac_optarg ;;
1153
1154
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155
    ac_prev=mandir ;;
1156
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157
    mandir=$ac_optarg ;;
1158
1159
  -nfp | --nfp | --nf)
1160
    # Obsolete; use --without-fp.
1161
    with_fp=no ;;
1162
1163
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164
  | --no-cr | --no-c | -n)
1165
    no_create=yes ;;
1166
1167
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169
    no_recursion=yes ;;
1170
1171
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173
  | --oldin | --oldi | --old | --ol | --o)
1174
    ac_prev=oldincludedir ;;
1175
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178
    oldincludedir=$ac_optarg ;;
1179
1180
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181
    ac_prev=prefix ;;
1182
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183
    prefix=$ac_optarg ;;
1184
1185
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186
  | --program-pre | --program-pr | --program-p)
1187
    ac_prev=program_prefix ;;
1188
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190
    program_prefix=$ac_optarg ;;
1191
1192
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193
  | --program-suf | --program-su | --program-s)
1194
    ac_prev=program_suffix ;;
1195
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197
    program_suffix=$ac_optarg ;;
1198
1199
  -program-transform-name | --program-transform-name \
1200
  | --program-transform-nam | --program-transform-na \
1201
  | --program-transform-n | --program-transform- \
1202
  | --program-transform | --program-transfor \
1203
  | --program-transfo | --program-transf \
1204
  | --program-trans | --program-tran \
1205
  | --progr-tra | --program-tr | --program-t)
1206
    ac_prev=program_transform_name ;;
1207
  -program-transform-name=* | --program-transform-name=* \
1208
  | --program-transform-nam=* | --program-transform-na=* \
1209
  | --program-transform-n=* | --program-transform-=* \
1210
  | --program-transform=* | --program-transfor=* \
1211
  | --program-transfo=* | --program-transf=* \
1212
  | --program-trans=* | --program-tran=* \
1213
  | --progr-tra=* | --program-tr=* | --program-t=*)
1214
    program_transform_name=$ac_optarg ;;
1215
1216
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217
    ac_prev=pdfdir ;;
1218
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219
    pdfdir=$ac_optarg ;;
1220
1221
  -psdir | --psdir | --psdi | --psd | --ps)
1222
    ac_prev=psdir ;;
1223
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224
    psdir=$ac_optarg ;;
1225
1226
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227
  | -silent | --silent | --silen | --sile | --sil)
1228
    silent=yes ;;
1229
1230
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231
    ac_prev=sbindir ;;
1232
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233
  | --sbi=* | --sb=*)
1234
    sbindir=$ac_optarg ;;
1235
1236
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238
  | --sharedst | --shareds | --shared | --share | --shar \
1239
  | --sha | --sh)
1240
    ac_prev=sharedstatedir ;;
1241
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244
  | --sha=* | --sh=*)
1245
    sharedstatedir=$ac_optarg ;;
1246
1247
  -site | --site | --sit)
1248
    ac_prev=site ;;
1249
  -site=* | --site=* | --sit=*)
1250
    site=$ac_optarg ;;
1251
1252
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253
    ac_prev=srcdir ;;
1254
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255
    srcdir=$ac_optarg ;;
1256
1257
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258
  | --syscon | --sysco | --sysc | --sys | --sy)
1259
    ac_prev=sysconfdir ;;
1260
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262
    sysconfdir=$ac_optarg ;;
1263
1264
  -target | --target | --targe | --targ | --tar | --ta | --t)
1265
    ac_prev=target_alias ;;
1266
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267
    target_alias=$ac_optarg ;;
1268
1269
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270
    verbose=yes ;;
1271
1272
  -version | --version | --versio | --versi | --vers | -V)
1273
    ac_init_version=: ;;
1274
1275
  -with-* | --with-*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1276
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1 by Noah Slater
Import upstream version 0.7.3~svn684
1277
    # Reject names that are not valid shell variable names.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1278
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1279
      as_fn_error "invalid package name: $ac_useropt"
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1280
    ac_useropt_orig=$ac_useropt
1281
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282
    case $ac_user_opts in
1283
      *"
1284
"with_$ac_useropt"
1285
"*) ;;
1286
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287
	 ac_unrecognized_sep=', ';;
1288
    esac
1289
    eval with_$ac_useropt=\$ac_optarg ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
1290
1291
  -without-* | --without-*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1292
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1 by Noah Slater
Import upstream version 0.7.3~svn684
1293
    # Reject names that are not valid shell variable names.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1294
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1295
      as_fn_error "invalid package name: $ac_useropt"
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1296
    ac_useropt_orig=$ac_useropt
1297
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298
    case $ac_user_opts in
1299
      *"
1300
"with_$ac_useropt"
1301
"*) ;;
1302
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303
	 ac_unrecognized_sep=', ';;
1304
    esac
1305
    eval with_$ac_useropt=no ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
1306
1307
  --x)
1308
    # Obsolete; use --with-x.
1309
    with_x=yes ;;
1310
1311
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312
  | --x-incl | --x-inc | --x-in | --x-i)
1313
    ac_prev=x_includes ;;
1314
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316
    x_includes=$ac_optarg ;;
1317
1318
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320
    ac_prev=x_libraries ;;
1321
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323
    x_libraries=$ac_optarg ;;
1324
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1325
  -*) as_fn_error "unrecognized option: \`$ac_option'
1326
Try \`$0 --help' for more information."
1 by Noah Slater
Import upstream version 0.7.3~svn684
1327
    ;;
1328
1329
  *=*)
1330
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331
    # Reject names that are not valid shell variable names.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1332
    case $ac_envvar in #(
1333
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1334
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335
    esac
1 by Noah Slater
Import upstream version 0.7.3~svn684
1336
    eval $ac_envvar=\$ac_optarg
1337
    export $ac_envvar ;;
1338
1339
  *)
1340
    # FIXME: should be removed in autoconf 3.0.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1341
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1 by Noah Slater
Import upstream version 0.7.3~svn684
1342
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1343
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1 by Noah Slater
Import upstream version 0.7.3~svn684
1344
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345
    ;;
1346
1347
  esac
1348
done
1349
1350
if test -n "$ac_prev"; then
1351
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1352
  as_fn_error "missing argument to $ac_option"
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1353
fi
1354
1355
if test -n "$ac_unrecognized_opts"; then
1356
  case $enable_option_checking in
1357
    no) ;;
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1358
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1359
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360
  esac
1361
fi
1362
1363
# Check all directory arguments for consistency.
1 by Noah Slater
Import upstream version 0.7.3~svn684
1364
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365
		datadir sysconfdir sharedstatedir localstatedir includedir \
1366
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367
		libdir localedir mandir
1368
do
1369
  eval ac_val=\$$ac_var
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1370
  # Remove trailing slashes.
1371
  case $ac_val in
1372
    */ )
1373
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374
      eval $ac_var=\$ac_val;;
1375
  esac
1376
  # Be sure to have absolute directory names.
1 by Noah Slater
Import upstream version 0.7.3~svn684
1377
  case $ac_val in
1378
    [\\/$]* | ?:[\\/]* )  continue;;
1379
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380
  esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1381
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1 by Noah Slater
Import upstream version 0.7.3~svn684
1382
done
1383
1384
# There might be people who depend on the old broken behavior: `$host'
1385
# used to hold the argument of --host etc.
1386
# FIXME: To remove some day.
1387
build=$build_alias
1388
host=$host_alias
1389
target=$target_alias
1390
1391
# FIXME: To remove some day.
1392
if test "x$host_alias" != x; then
1393
  if test "x$build_alias" = x; then
1394
    cross_compiling=maybe
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1395
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1 by Noah Slater
Import upstream version 0.7.3~svn684
1396
    If a cross compiler is detected then cross compile mode will be used." >&2
1397
  elif test "x$build_alias" != "x$host_alias"; then
1398
    cross_compiling=yes
1399
  fi
1400
fi
1401
1402
ac_tool_prefix=
1403
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405
test "$silent" = yes && exec 6>/dev/null
1406
1407
1408
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409
ac_ls_di=`ls -di .` &&
1410
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1411
  as_fn_error "working directory cannot be determined"
1 by Noah Slater
Import upstream version 0.7.3~svn684
1412
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1413
  as_fn_error "pwd does not report name of working directory"
1 by Noah Slater
Import upstream version 0.7.3~svn684
1414
1415
1416
# Find the source files, if location was not specified.
1417
if test -z "$srcdir"; then
1418
  ac_srcdir_defaulted=yes
1419
  # Try the directory containing this script, then the parent directory.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1420
  ac_confdir=`$as_dirname -- "$as_myself" ||
1421
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1423
	 X"$as_myself" : 'X\(//\)$' \| \
1424
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425
$as_echo X"$as_myself" |
1 by Noah Slater
Import upstream version 0.7.3~svn684
1426
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427
	    s//\1/
1428
	    q
1429
	  }
1430
	  /^X\(\/\/\)[^/].*/{
1431
	    s//\1/
1432
	    q
1433
	  }
1434
	  /^X\(\/\/\)$/{
1435
	    s//\1/
1436
	    q
1437
	  }
1438
	  /^X\(\/\).*/{
1439
	    s//\1/
1440
	    q
1441
	  }
1442
	  s/.*/./; q'`
1443
  srcdir=$ac_confdir
1444
  if test ! -r "$srcdir/$ac_unique_file"; then
1445
    srcdir=..
1446
  fi
1447
else
1448
  ac_srcdir_defaulted=no
1449
fi
1450
if test ! -r "$srcdir/$ac_unique_file"; then
1451
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1452
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1 by Noah Slater
Import upstream version 0.7.3~svn684
1453
fi
1454
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455
ac_abs_confdir=`(
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1456
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1 by Noah Slater
Import upstream version 0.7.3~svn684
1457
	pwd)`
1458
# When building in place, set srcdir=.
1459
if test "$ac_abs_confdir" = "$ac_pwd"; then
1460
  srcdir=.
1461
fi
1462
# Remove unnecessary trailing slashes from srcdir.
1463
# Double slashes in file names in object file debugging info
1464
# mess up M-x gdb in Emacs.
1465
case $srcdir in
1466
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467
esac
1468
for ac_var in $ac_precious_vars; do
1469
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470
  eval ac_env_${ac_var}_value=\$${ac_var}
1471
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473
done
1474
1475
#
1476
# Report the --help message.
1477
#
1478
if test "$ac_init_help" = "long"; then
1479
  # Omit some internal or obsolete options to make the list less imposing.
1480
  # This message is too long to be a string in the A/UX 3.1 sh.
1481
  cat <<_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1482
\`configure' configures Apache CouchDB 0.11.0 to adapt to many kinds of systems.
1 by Noah Slater
Import upstream version 0.7.3~svn684
1483
1484
Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487
VAR=VALUE.  See below for descriptions of some of the useful variables.
1488
1489
Defaults for the options are specified in brackets.
1490
1491
Configuration:
1492
  -h, --help              display this help and exit
1493
      --help=short        display options specific to this package
1494
      --help=recursive    display the short help of all the included packages
1495
  -V, --version           display version information and exit
1496
  -q, --quiet, --silent   do not print \`checking...' messages
1497
      --cache-file=FILE   cache test results in FILE [disabled]
1498
  -C, --config-cache      alias for \`--cache-file=config.cache'
1499
  -n, --no-create         do not create output files
1500
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1501
1502
Installation directories:
1503
  --prefix=PREFIX         install architecture-independent files in PREFIX
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1504
                          [$ac_default_prefix]
1 by Noah Slater
Import upstream version 0.7.3~svn684
1505
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1506
                          [PREFIX]
1 by Noah Slater
Import upstream version 0.7.3~svn684
1507
1508
By default, \`make install' will install all the files in
1509
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1510
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511
for instance \`--prefix=\$HOME'.
1512
1513
For better control, use the options below.
1514
1515
Fine tuning of the installation directories:
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1516
  --bindir=DIR            user executables [EPREFIX/bin]
1517
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1518
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1519
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1520
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1521
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1522
  --libdir=DIR            object code libraries [EPREFIX/lib]
1523
  --includedir=DIR        C header files [PREFIX/include]
1524
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1525
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1526
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1527
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1528
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1529
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1530
  --docdir=DIR            documentation root [DATAROOTDIR/doc/apache-couchdb]
1531
  --htmldir=DIR           html documentation [DOCDIR]
1532
  --dvidir=DIR            dvi documentation [DOCDIR]
1533
  --pdfdir=DIR            pdf documentation [DOCDIR]
1534
  --psdir=DIR             ps documentation [DOCDIR]
1 by Noah Slater
Import upstream version 0.7.3~svn684
1535
_ACEOF
1536
1537
  cat <<\_ACEOF
1538
1539
Program names:
1540
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1541
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1542
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1543
1544
System types:
1545
  --build=BUILD     configure for building on BUILD [guessed]
1546
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1547
_ACEOF
1548
fi
1549
1550
if test -n "$ac_init_help"; then
1551
  case $ac_init_help in
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1552
     short | recursive ) echo "Configuration of Apache CouchDB 0.11.0:";;
1 by Noah Slater
Import upstream version 0.7.3~svn684
1553
   esac
1554
  cat <<\_ACEOF
1555
1556
Optional Features:
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1557
  --disable-option-checking  ignore unrecognized --enable/--with options
1 by Noah Slater
Import upstream version 0.7.3~svn684
1558
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1559
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1560
  --disable-dependency-tracking  speeds up one-time build
1561
  --enable-dependency-tracking   do not reject slow dependency extractors
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
1562
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1563
  --enable-static[=PKGS]  build static libraries [default=no]
1 by Noah Slater
Import upstream version 0.7.3~svn684
1564
  --enable-fast-install[=PKGS]
1565
                          optimize for fast installation [default=yes]
1566
  --disable-libtool-lock  avoid locking (might break parallel builds)
1567
  --disable-init          don't install init script where applicable
1568
  --disable-launchd       don't install launchd configuration where applicable
1569
1570
Optional Packages:
1571
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1572
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1573
  --with-pic              try to use only PIC/non-PIC objects [default=use
1574
                          both]
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1575
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1 by Noah Slater
Import upstream version 0.7.3~svn684
1576
  --with-erlang=PATH      set PATH to the Erlang include directory
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
1577
  --with-js-include=PATH  set PATH to the SpiderMonkey include directory
1578
  --with-js-lib=PATH      set PATH to the SpiderMonkey library directory
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1579
  --with-openssl-bin-dir=PATH
1580
                          path to the open ssl binaries for distribution on
1581
                          Windows
1582
  --with-msvc-redist-dir=PATH
1583
                          path to the msvc redistributables for the Windows
1584
                          platform
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
1585
  --with-win32-icu-binaries=PATH
1586
                          set PATH to the Win32 native ICU binaries directory
1587
  --with-win32-curl=PATH  set PATH to the Win32 native curl directory
1 by Noah Slater
Import upstream version 0.7.3~svn684
1588
1589
Some influential environment variables:
1590
  CC          C compiler command
1591
  CFLAGS      C compiler flags
1592
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1593
              nonstandard directory <lib dir>
1594
  LIBS        libraries to pass to the linker, e.g. -l<library>
1595
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596
              you have headers in a nonstandard directory <include dir>
1597
  CPP         C preprocessor
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
1598
  ERLC_FLAGS  general flags to prepend to ERLC_FLAGS
1.2.1 by Noah Slater
Import upstream version 0.9.0
1599
  FLAGS       general flags to prepend to LDFLAGS and CPPFLAGS
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
1600
  ERL         path to the `erl' executable
1601
  ERLC        path to the `erlc' executable
1 by Noah Slater
Import upstream version 0.7.3~svn684
1602
  HELP2MAN_EXECUTABLE
1603
              path to the `help2man' program
1604
1605
Use these variables to override the choices made by `configure' or to help
1606
it to find libraries and programs with nonstandard names/locations.
1607
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1608
Report bugs to the package provider.
1 by Noah Slater
Import upstream version 0.7.3~svn684
1609
_ACEOF
1610
ac_status=$?
1611
fi
1612
1613
if test "$ac_init_help" = "recursive"; then
1614
  # If there are subdirs, report their specific --help.
1615
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1616
    test -d "$ac_dir" ||
1617
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618
      continue
1 by Noah Slater
Import upstream version 0.7.3~svn684
1619
    ac_builddir=.
1620
1621
case "$ac_dir" in
1622
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623
*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1624
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1 by Noah Slater
Import upstream version 0.7.3~svn684
1625
  # A ".." for each directory in $ac_dir_suffix.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1626
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1 by Noah Slater
Import upstream version 0.7.3~svn684
1627
  case $ac_top_builddir_sub in
1628
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630
  esac ;;
1631
esac
1632
ac_abs_top_builddir=$ac_pwd
1633
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634
# for backward compatibility:
1635
ac_top_builddir=$ac_top_build_prefix
1636
1637
case $srcdir in
1638
  .)  # We are building in place.
1639
    ac_srcdir=.
1640
    ac_top_srcdir=$ac_top_builddir_sub
1641
    ac_abs_top_srcdir=$ac_pwd ;;
1642
  [\\/]* | ?:[\\/]* )  # Absolute name.
1643
    ac_srcdir=$srcdir$ac_dir_suffix;
1644
    ac_top_srcdir=$srcdir
1645
    ac_abs_top_srcdir=$srcdir ;;
1646
  *) # Relative name.
1647
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1649
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650
esac
1651
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653
    cd "$ac_dir" || { ac_status=$?; continue; }
1654
    # Check for guested configure.
1655
    if test -f "$ac_srcdir/configure.gnu"; then
1656
      echo &&
1657
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658
    elif test -f "$ac_srcdir/configure"; then
1659
      echo &&
1660
      $SHELL "$ac_srcdir/configure" --help=recursive
1661
    else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
1662
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1 by Noah Slater
Import upstream version 0.7.3~svn684
1663
    fi || ac_status=$?
1664
    cd "$ac_pwd" || { ac_status=$?; break; }
1665
  done
1666
fi
1667
1668
test -n "$ac_init_help" && exit $ac_status
1669
if $ac_init_version; then
1670
  cat <<\_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1671
Apache CouchDB configure 0.11.0
1672
generated by GNU Autoconf 2.64
1 by Noah Slater
Import upstream version 0.7.3~svn684
1673
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1674
Copyright (C) 2009 Free Software Foundation, Inc.
1 by Noah Slater
Import upstream version 0.7.3~svn684
1675
This configure script is free software; the Free Software Foundation
1676
gives unlimited permission to copy, distribute and modify it.
1677
_ACEOF
1678
  exit
1679
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
1680
1681
## ------------------------ ##
1682
## Autoconf initialization. ##
1683
## ------------------------ ##
1684
1685
# ac_fn_c_try_compile LINENO
1686
# --------------------------
1687
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1688
ac_fn_c_try_compile ()
1689
{
1690
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691
  rm -f conftest.$ac_objext
1692
  if { { ac_try="$ac_compile"
1693
case "(($ac_try" in
1694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695
  *) ac_try_echo=$ac_try;;
1696
esac
1697
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698
$as_echo "$ac_try_echo"; } >&5
1699
  (eval "$ac_compile") 2>conftest.err
1700
  ac_status=$?
1701
  if test -s conftest.err; then
1702
    grep -v '^ *+' conftest.err >conftest.er1
1703
    cat conftest.er1 >&5
1704
    mv -f conftest.er1 conftest.err
1705
  fi
1706
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707
  test $ac_status = 0; } && {
1708
	 test -z "$ac_c_werror_flag" ||
1709
	 test ! -s conftest.err
1710
       } && test -s conftest.$ac_objext; then :
1711
  ac_retval=0
1712
else
1713
  $as_echo "$as_me: failed program was:" >&5
1714
sed 's/^/| /' conftest.$ac_ext >&5
1715
1716
	ac_retval=1
1717
fi
1718
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719
  return $ac_retval
1720
1721
} # ac_fn_c_try_compile
1722
1723
# ac_fn_c_try_cpp LINENO
1724
# ----------------------
1725
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1726
ac_fn_c_try_cpp ()
1727
{
1728
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1730
case "(($ac_try" in
1731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732
  *) ac_try_echo=$ac_try;;
1733
esac
1734
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735
$as_echo "$ac_try_echo"; } >&5
1736
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1737
  ac_status=$?
1738
  if test -s conftest.err; then
1739
    grep -v '^ *+' conftest.err >conftest.er1
1740
    cat conftest.er1 >&5
1741
    mv -f conftest.er1 conftest.err
1742
  fi
1743
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744
  test $ac_status = 0; } >/dev/null && {
1745
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1746
	 test ! -s conftest.err
1747
       }; then :
1748
  ac_retval=0
1749
else
1750
  $as_echo "$as_me: failed program was:" >&5
1751
sed 's/^/| /' conftest.$ac_ext >&5
1752
1753
    ac_retval=1
1754
fi
1755
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756
  return $ac_retval
1757
1758
} # ac_fn_c_try_cpp
1759
1760
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761
# -------------------------------------------------------
1762
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763
# the include files in INCLUDES and setting the cache variable VAR
1764
# accordingly.
1765
ac_fn_c_check_header_mongrel ()
1766
{
1767
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1769
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770
$as_echo_n "checking for $2... " >&6; }
1771
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772
  $as_echo_n "(cached) " >&6
1773
fi
1774
eval ac_res=\$$3
1775
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776
$as_echo "$ac_res" >&6; }
1777
else
1778
  # Is the header compilable?
1779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780
$as_echo_n "checking $2 usability... " >&6; }
1781
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782
/* end confdefs.h.  */
1783
$4
1784
#include <$2>
1785
_ACEOF
1786
if ac_fn_c_try_compile "$LINENO"; then :
1787
  ac_header_compiler=yes
1788
else
1789
  ac_header_compiler=no
1790
fi
1791
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793
$as_echo "$ac_header_compiler" >&6; }
1794
1795
# Is the header present?
1796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797
$as_echo_n "checking $2 presence... " >&6; }
1798
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799
/* end confdefs.h.  */
1800
#include <$2>
1801
_ACEOF
1802
if ac_fn_c_try_cpp "$LINENO"; then :
1803
  ac_header_preproc=yes
1804
else
1805
  ac_header_preproc=no
1806
fi
1807
rm -f conftest.err conftest.$ac_ext
1808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809
$as_echo "$ac_header_preproc" >&6; }
1810
1811
# So?  What about this header?
1812
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813
  yes:no: )
1814
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818
    ;;
1819
  no:yes:* )
1820
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1823
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1824
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1827
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1828
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830
    ;;
1831
esac
1832
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833
$as_echo_n "checking for $2... " >&6; }
1834
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835
  $as_echo_n "(cached) " >&6
1836
else
1837
  eval "$3=\$ac_header_compiler"
1838
fi
1839
eval ac_res=\$$3
1840
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841
$as_echo "$ac_res" >&6; }
1842
fi
1843
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844
1845
} # ac_fn_c_check_header_mongrel
1846
1847
# ac_fn_c_try_run LINENO
1848
# ----------------------
1849
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1850
# that executables *can* be run.
1851
ac_fn_c_try_run ()
1852
{
1853
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854
  if { { ac_try="$ac_link"
1855
case "(($ac_try" in
1856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857
  *) ac_try_echo=$ac_try;;
1858
esac
1859
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860
$as_echo "$ac_try_echo"; } >&5
1861
  (eval "$ac_link") 2>&5
1862
  ac_status=$?
1863
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1865
  { { case "(($ac_try" in
1866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867
  *) ac_try_echo=$ac_try;;
1868
esac
1869
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870
$as_echo "$ac_try_echo"; } >&5
1871
  (eval "$ac_try") 2>&5
1872
  ac_status=$?
1873
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874
  test $ac_status = 0; }; }; then :
1875
  ac_retval=0
1876
else
1877
  $as_echo "$as_me: program exited with status $ac_status" >&5
1878
       $as_echo "$as_me: failed program was:" >&5
1879
sed 's/^/| /' conftest.$ac_ext >&5
1880
1881
       ac_retval=$ac_status
1882
fi
1883
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885
  return $ac_retval
1886
1887
} # ac_fn_c_try_run
1888
1889
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1890
# -------------------------------------------------------
1891
# Tests whether HEADER exists and can be compiled using the include files in
1892
# INCLUDES, setting the cache variable VAR accordingly.
1893
ac_fn_c_check_header_compile ()
1894
{
1895
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897
$as_echo_n "checking for $2... " >&6; }
1898
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899
  $as_echo_n "(cached) " >&6
1900
else
1901
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902
/* end confdefs.h.  */
1903
$4
1904
#include <$2>
1905
_ACEOF
1906
if ac_fn_c_try_compile "$LINENO"; then :
1907
  eval "$3=yes"
1908
else
1909
  eval "$3=no"
1910
fi
1911
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912
fi
1913
eval ac_res=\$$3
1914
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915
$as_echo "$ac_res" >&6; }
1916
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917
1918
} # ac_fn_c_check_header_compile
1919
1920
# ac_fn_c_try_link LINENO
1921
# -----------------------
1922
# Try to link conftest.$ac_ext, and return whether this succeeded.
1923
ac_fn_c_try_link ()
1924
{
1925
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926
  rm -f conftest.$ac_objext conftest$ac_exeext
1927
  if { { ac_try="$ac_link"
1928
case "(($ac_try" in
1929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930
  *) ac_try_echo=$ac_try;;
1931
esac
1932
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933
$as_echo "$ac_try_echo"; } >&5
1934
  (eval "$ac_link") 2>conftest.err
1935
  ac_status=$?
1936
  if test -s conftest.err; then
1937
    grep -v '^ *+' conftest.err >conftest.er1
1938
    cat conftest.er1 >&5
1939
    mv -f conftest.er1 conftest.err
1940
  fi
1941
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942
  test $ac_status = 0; } && {
1943
	 test -z "$ac_c_werror_flag" ||
1944
	 test ! -s conftest.err
1945
       } && test -s conftest$ac_exeext && {
1946
	 test "$cross_compiling" = yes ||
1947
	 $as_test_x conftest$ac_exeext
1948
       }; then :
1949
  ac_retval=0
1950
else
1951
  $as_echo "$as_me: failed program was:" >&5
1952
sed 's/^/| /' conftest.$ac_ext >&5
1953
1954
	ac_retval=1
1955
fi
1956
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958
  # interfere with the next link command; also delete a directory that is
1959
  # left behind by Apple's compiler.  We do this before executing the actions.
1960
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962
  return $ac_retval
1963
1964
} # ac_fn_c_try_link
1965
1966
# ac_fn_c_check_func LINENO FUNC VAR
1967
# ----------------------------------
1968
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1969
ac_fn_c_check_func ()
1970
{
1971
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973
$as_echo_n "checking for $2... " >&6; }
1974
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975
  $as_echo_n "(cached) " >&6
1976
else
1977
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978
/* end confdefs.h.  */
1979
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1980
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1981
#define $2 innocuous_$2
1982
1983
/* System header to define __stub macros and hopefully few prototypes,
1984
    which can conflict with char $2 (); below.
1985
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1986
    <limits.h> exists even on freestanding compilers.  */
1987
1988
#ifdef __STDC__
1989
# include <limits.h>
1990
#else
1991
# include <assert.h>
1992
#endif
1993
1994
#undef $2
1995
1996
/* Override any GCC internal prototype to avoid an error.
1997
   Use char because int might match the return type of a GCC
1998
   builtin and then its argument prototype would still apply.  */
1999
#ifdef __cplusplus
2000
extern "C"
2001
#endif
2002
char $2 ();
2003
/* The GNU C library defines this for functions which it implements
2004
    to always fail with ENOSYS.  Some functions are actually named
2005
    something starting with __ and the normal name is an alias.  */
2006
#if defined __stub_$2 || defined __stub___$2
2007
choke me
2008
#endif
2009
2010
int
2011
main ()
2012
{
2013
return $2 ();
2014
  ;
2015
  return 0;
2016
}
2017
_ACEOF
2018
if ac_fn_c_try_link "$LINENO"; then :
2019
  eval "$3=yes"
2020
else
2021
  eval "$3=no"
2022
fi
2023
rm -f core conftest.err conftest.$ac_objext \
2024
    conftest$ac_exeext conftest.$ac_ext
2025
fi
2026
eval ac_res=\$$3
2027
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028
$as_echo "$ac_res" >&6; }
2029
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030
2031
} # ac_fn_c_check_func
1 by Noah Slater
Import upstream version 0.7.3~svn684
2032
cat >config.log <<_ACEOF
2033
This file contains any messages produced by compilers while
2034
running configure, to aid debugging if configure makes a mistake.
2035
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2036
It was created by Apache CouchDB $as_me 0.11.0, which was
2037
generated by GNU Autoconf 2.64.  Invocation command line was
1 by Noah Slater
Import upstream version 0.7.3~svn684
2038
2039
  $ $0 $@
2040
2041
_ACEOF
2042
exec 5>>config.log
2043
{
2044
cat <<_ASUNAME
2045
## --------- ##
2046
## Platform. ##
2047
## --------- ##
2048
2049
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2050
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2051
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2052
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2053
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2054
2055
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2056
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2057
2058
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2059
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2060
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2061
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2062
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2063
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2064
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2065
2066
_ASUNAME
2067
2068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069
for as_dir in $PATH
2070
do
2071
  IFS=$as_save_IFS
2072
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2073
    $as_echo "PATH: $as_dir"
2074
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
2075
IFS=$as_save_IFS
2076
2077
} >&5
2078
2079
cat >&5 <<_ACEOF
2080
2081
2082
## ----------- ##
2083
## Core tests. ##
2084
## ----------- ##
2085
2086
_ACEOF
2087
2088
2089
# Keep a trace of the command line.
2090
# Strip out --no-create and --no-recursion so they do not pile up.
2091
# Strip out --silent because we don't want to record it for future runs.
2092
# Also quote any args containing shell meta-characters.
2093
# Make two passes to allow for proper duplicate-argument suppression.
2094
ac_configure_args=
2095
ac_configure_args0=
2096
ac_configure_args1=
2097
ac_must_keep_next=false
2098
for ac_pass in 1 2
2099
do
2100
  for ac_arg
2101
  do
2102
    case $ac_arg in
2103
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2104
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2105
    | -silent | --silent | --silen | --sile | --sil)
2106
      continue ;;
2107
    *\'*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2108
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
2109
    esac
2110
    case $ac_pass in
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2111
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
2112
    2)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2113
      as_fn_append ac_configure_args1 " '$ac_arg'"
1 by Noah Slater
Import upstream version 0.7.3~svn684
2114
      if test $ac_must_keep_next = true; then
2115
	ac_must_keep_next=false # Got value, back to normal.
2116
      else
2117
	case $ac_arg in
2118
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2119
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2120
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2121
	  | -with-* | --with-* | -without-* | --without-* | --x)
2122
	    case "$ac_configure_args0 " in
2123
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2124
	    esac
2125
	    ;;
2126
	  -* ) ac_must_keep_next=true ;;
2127
	esac
2128
      fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2129
      as_fn_append ac_configure_args " '$ac_arg'"
1 by Noah Slater
Import upstream version 0.7.3~svn684
2130
      ;;
2131
    esac
2132
  done
2133
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2134
{ ac_configure_args0=; unset ac_configure_args0;}
2135
{ ac_configure_args1=; unset ac_configure_args1;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
2136
2137
# When interrupted or exit'd, cleanup temporary files, and complete
2138
# config.log.  We remove comments because anyway the quotes in there
2139
# would cause problems or look ugly.
2140
# WARNING: Use '\'' to represent an apostrophe within the trap.
2141
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2142
trap 'exit_status=$?
2143
  # Save into config.log some information that might help in debugging.
2144
  {
2145
    echo
2146
2147
    cat <<\_ASBOX
2148
## ---------------- ##
2149
## Cache variables. ##
2150
## ---------------- ##
2151
_ASBOX
2152
    echo
2153
    # The following way of writing the cache mishandles newlines in values,
2154
(
2155
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2156
    eval ac_val=\$$ac_var
2157
    case $ac_val in #(
2158
    *${as_nl}*)
2159
      case $ac_var in #(
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2160
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2161
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
2162
      esac
2163
      case $ac_var in #(
2164
      _ | IFS | as_nl) ;; #(
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2165
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2166
      *) { eval $ac_var=; unset $ac_var;} ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
2167
      esac ;;
2168
    esac
2169
  done
2170
  (set) 2>&1 |
2171
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2172
    *${as_nl}ac_space=\ *)
2173
      sed -n \
2174
	"s/'\''/'\''\\\\'\'''\''/g;
2175
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2176
      ;; #(
2177
    *)
2178
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2179
      ;;
2180
    esac |
2181
    sort
2182
)
2183
    echo
2184
2185
    cat <<\_ASBOX
2186
## ----------------- ##
2187
## Output variables. ##
2188
## ----------------- ##
2189
_ASBOX
2190
    echo
2191
    for ac_var in $ac_subst_vars
2192
    do
2193
      eval ac_val=\$$ac_var
2194
      case $ac_val in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2195
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
2196
      esac
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2197
      $as_echo "$ac_var='\''$ac_val'\''"
1 by Noah Slater
Import upstream version 0.7.3~svn684
2198
    done | sort
2199
    echo
2200
2201
    if test -n "$ac_subst_files"; then
2202
      cat <<\_ASBOX
2203
## ------------------- ##
2204
## File substitutions. ##
2205
## ------------------- ##
2206
_ASBOX
2207
      echo
2208
      for ac_var in $ac_subst_files
2209
      do
2210
	eval ac_val=\$$ac_var
2211
	case $ac_val in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2212
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
2213
	esac
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2214
	$as_echo "$ac_var='\''$ac_val'\''"
1 by Noah Slater
Import upstream version 0.7.3~svn684
2215
      done | sort
2216
      echo
2217
    fi
2218
2219
    if test -s confdefs.h; then
2220
      cat <<\_ASBOX
2221
## ----------- ##
2222
## confdefs.h. ##
2223
## ----------- ##
2224
_ASBOX
2225
      echo
2226
      cat confdefs.h
2227
      echo
2228
    fi
2229
    test "$ac_signal" != 0 &&
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2230
      $as_echo "$as_me: caught signal $ac_signal"
2231
    $as_echo "$as_me: exit $exit_status"
1 by Noah Slater
Import upstream version 0.7.3~svn684
2232
  } >&5
2233
  rm -f core *.core core.conftest.* &&
2234
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2235
    exit $exit_status
2236
' 0
2237
for ac_signal in 1 2 13 15; do
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2238
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1 by Noah Slater
Import upstream version 0.7.3~svn684
2239
done
2240
ac_signal=0
2241
2242
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2243
rm -f -r conftest* confdefs.h
2244
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2245
$as_echo "/* confdefs.h */" > confdefs.h
2246
1 by Noah Slater
Import upstream version 0.7.3~svn684
2247
# Predefined preprocessor variables.
2248
2249
cat >>confdefs.h <<_ACEOF
2250
#define PACKAGE_NAME "$PACKAGE_NAME"
2251
_ACEOF
2252
2253
cat >>confdefs.h <<_ACEOF
2254
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2255
_ACEOF
2256
2257
cat >>confdefs.h <<_ACEOF
2258
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2259
_ACEOF
2260
2261
cat >>confdefs.h <<_ACEOF
2262
#define PACKAGE_STRING "$PACKAGE_STRING"
2263
_ACEOF
2264
2265
cat >>confdefs.h <<_ACEOF
2266
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2267
_ACEOF
2268
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2269
cat >>confdefs.h <<_ACEOF
2270
#define PACKAGE_URL "$PACKAGE_URL"
2271
_ACEOF
2272
1 by Noah Slater
Import upstream version 0.7.3~svn684
2273
2274
# Let the site file select an alternate cache file if it wants to.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2275
# Prefer an explicitly selected file to automatically selected ones.
2276
ac_site_file1=NONE
2277
ac_site_file2=NONE
1 by Noah Slater
Import upstream version 0.7.3~svn684
2278
if test -n "$CONFIG_SITE"; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2279
  ac_site_file1=$CONFIG_SITE
1 by Noah Slater
Import upstream version 0.7.3~svn684
2280
elif test "x$prefix" != xNONE; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2281
  ac_site_file1=$prefix/share/config.site
2282
  ac_site_file2=$prefix/etc/config.site
1 by Noah Slater
Import upstream version 0.7.3~svn684
2283
else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2284
  ac_site_file1=$ac_default_prefix/share/config.site
2285
  ac_site_file2=$ac_default_prefix/etc/config.site
1 by Noah Slater
Import upstream version 0.7.3~svn684
2286
fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2287
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1 by Noah Slater
Import upstream version 0.7.3~svn684
2288
do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2289
  test "x$ac_site_file" = xNONE && continue
1 by Noah Slater
Import upstream version 0.7.3~svn684
2290
  if test -r "$ac_site_file"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2291
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2292
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
2293
    sed 's/^/| /' "$ac_site_file" >&5
2294
    . "$ac_site_file"
2295
  fi
2296
done
2297
2298
if test -r "$cache_file"; then
2299
  # Some versions of bash will fail to source /dev/null (special
2300
  # files actually), so we avoid doing that.
2301
  if test -f "$cache_file"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2302
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2303
$as_echo "$as_me: loading cache $cache_file" >&6;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
2304
    case $cache_file in
2305
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2306
      *)                      . "./$cache_file";;
2307
    esac
2308
  fi
2309
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2310
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2311
$as_echo "$as_me: creating cache $cache_file" >&6;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
2312
  >$cache_file
2313
fi
2314
2315
# Check that the precious variables saved in the cache have kept the same
2316
# value.
2317
ac_cache_corrupted=false
2318
for ac_var in $ac_precious_vars; do
2319
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2320
  eval ac_new_set=\$ac_env_${ac_var}_set
2321
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2322
  eval ac_new_val=\$ac_env_${ac_var}_value
2323
  case $ac_old_set,$ac_new_set in
2324
    set,)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2325
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2326
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
2327
      ac_cache_corrupted=: ;;
2328
    ,set)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2329
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2330
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
2331
      ac_cache_corrupted=: ;;
2332
    ,);;
2333
    *)
2334
      if test "x$ac_old_val" != "x$ac_new_val"; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2335
	# differences in whitespace do not lead to failure.
2336
	ac_old_val_w=`echo x $ac_old_val`
2337
	ac_new_val_w=`echo x $ac_new_val`
2338
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2339
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2340
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2341
	  ac_cache_corrupted=:
2342
	else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2343
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2344
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2345
	  eval $ac_var=\$ac_old_val
2346
	fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2347
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2348
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2349
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2350
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
2351
      fi;;
2352
  esac
2353
  # Pass precious variables to config.status.
2354
  if test "$ac_new_set" = set; then
2355
    case $ac_new_val in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2356
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
2357
    *) ac_arg=$ac_var=$ac_new_val ;;
2358
    esac
2359
    case " $ac_configure_args " in
2360
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2361
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
2362
    esac
2363
  fi
2364
done
2365
if $ac_cache_corrupted; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2366
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2367
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2368
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2369
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2370
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
2371
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2372
## -------------------- ##
2373
## Main body of script. ##
2374
## -------------------- ##
1 by Noah Slater
Import upstream version 0.7.3~svn684
2375
2376
ac_ext=c
2377
ac_cpp='$CPP $CPPFLAGS'
2378
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2379
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2380
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381
2382
2383
2384
2385
2386
2387
ac_aux_dir=
2388
for ac_dir in build-aux "$srcdir"/build-aux; do
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2389
  for ac_t in install-sh install.sh shtool; do
2390
    if test -f "$ac_dir/$ac_t"; then
2391
      ac_aux_dir=$ac_dir
2392
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2393
      break 2
2394
    fi
2395
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
2396
done
2397
if test -z "$ac_aux_dir"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2398
  as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
2399
fi
2400
2401
# These three variables are undocumented and unsupported,
2402
# and are intended to be withdrawn in a future Autoconf release.
2403
# They can cause serious problems if a builder's source tree is in a directory
2404
# whose full name contains unusual characters.
2405
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2406
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2407
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2408
2409
2410
2411
ac_config_headers="$ac_config_headers config.h"
2412
2413
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2414
am__api_version='1.11'
1.1.2 by Noah Slater
Import upstream version 0.8.0
2415
1 by Noah Slater
Import upstream version 0.7.3~svn684
2416
# Find a good install program.  We prefer a C program (faster),
2417
# so one script is as good as another.  But avoid the broken or
2418
# incompatible versions:
2419
# SysV /etc/install, /usr/sbin/install
2420
# SunOS /usr/etc/install
2421
# IRIX /sbin/install
2422
# AIX /bin/install
2423
# AmigaOS /C/install, which installs bootblocks on floppy discs
2424
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2425
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2426
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2427
# OS/2's system install, which has a completely different semantic
2428
# ./install, which can be erroneously created by make from ./install.sh.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2429
# Reject install programs that cannot install multiple files.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2431
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
2432
if test -z "$INSTALL"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2433
if test "${ac_cv_path_install+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2434
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
2435
else
2436
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437
for as_dir in $PATH
2438
do
2439
  IFS=$as_save_IFS
2440
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2441
    # Account for people who put trailing slashes in PATH elements.
2442
case $as_dir/ in #((
2443
  ./ | .// | /[cC]/* | \
1 by Noah Slater
Import upstream version 0.7.3~svn684
2444
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2445
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1 by Noah Slater
Import upstream version 0.7.3~svn684
2446
  /usr/ucb/* ) ;;
2447
  *)
2448
    # OSF1 and SCO ODT 3.0 have their own names for install.
2449
    # Don't use installbsd from OSF since it installs stuff as root
2450
    # by default.
2451
    for ac_prog in ginstall scoinst install; do
2452
      for ac_exec_ext in '' $ac_executable_extensions; do
2453
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2454
	  if test $ac_prog = install &&
2455
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456
	    # AIX install.  It has an incompatible calling convention.
2457
	    :
2458
	  elif test $ac_prog = install &&
2459
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2460
	    # program-specific install script used by HP pwplus--don't use.
2461
	    :
2462
	  else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2463
	    rm -rf conftest.one conftest.two conftest.dir
2464
	    echo one > conftest.one
2465
	    echo two > conftest.two
2466
	    mkdir conftest.dir
2467
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2468
	      test -s conftest.one && test -s conftest.two &&
2469
	      test -s conftest.dir/conftest.one &&
2470
	      test -s conftest.dir/conftest.two
2471
	    then
2472
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2473
	      break 3
2474
	    fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
2475
	  fi
2476
	fi
2477
      done
2478
    done
2479
    ;;
2480
esac
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2481
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2482
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
2483
IFS=$as_save_IFS
2484
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2485
rm -rf conftest.one conftest.two conftest.dir
1 by Noah Slater
Import upstream version 0.7.3~svn684
2486
2487
fi
2488
  if test "${ac_cv_path_install+set}" = set; then
2489
    INSTALL=$ac_cv_path_install
2490
  else
2491
    # As a last resort, use the slow shell script.  Don't cache a
2492
    # value for INSTALL within a source directory, because that will
2493
    # break other packages using the cache if that directory is
2494
    # removed, or if the value is a relative name.
2495
    INSTALL=$ac_install_sh
2496
  fi
2497
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2499
$as_echo "$INSTALL" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
2500
2501
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2502
# It thinks the first close brace ends the variable substitution.
2503
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2504
2505
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2506
2507
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2508
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2510
$as_echo_n "checking whether build environment is sane... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
2511
# Just in case
2512
sleep 1
2513
echo timestamp > conftest.file
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2514
# Reject unsafe characters in $srcdir or the absolute working directory
2515
# name.  Accept space and tab only in the latter.
2516
am_lf='
2517
'
2518
case `pwd` in
2519
  *[\\\"\#\$\&\'\`$am_lf]*)
2520
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2521
esac
2522
case $srcdir in
2523
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2524
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2525
esac
2526
1 by Noah Slater
Import upstream version 0.7.3~svn684
2527
# Do `set' in a subshell so we don't clobber the current shell's
2528
# arguments.  Must try -L first in case configure is actually a
2529
# symlink; some systems play weird games with the mod time of symlinks
2530
# (eg FreeBSD returns the mod time of the symlink's containing
2531
# directory).
2532
if (
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2533
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1 by Noah Slater
Import upstream version 0.7.3~svn684
2534
   if test "$*" = "X"; then
2535
      # -L didn't work.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2536
      set X `ls -t "$srcdir/configure" conftest.file`
1 by Noah Slater
Import upstream version 0.7.3~svn684
2537
   fi
2538
   rm -f conftest.file
2539
   if test "$*" != "X $srcdir/configure conftest.file" \
2540
      && test "$*" != "X conftest.file $srcdir/configure"; then
2541
2542
      # If neither matched, then we have a broken ls.  This can happen
2543
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2544
      # broken ls alias from the environment.  This has actually
2545
      # happened.  Such a system could not be considered "sane".
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2546
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2547
alias in your environment" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
2548
   fi
2549
2550
   test "$2" = conftest.file
2551
   )
2552
then
2553
   # Ok.
2554
   :
2555
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2556
   as_fn_error "newly created file is older than distributed files!
2557
Check your system clock" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
2558
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2560
$as_echo "yes" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
2561
test "$program_prefix" != NONE &&
2562
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2563
# Use a double $ so make ignores it.
2564
test "$program_suffix" != NONE &&
2565
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2566
# Double any \ or $.
1 by Noah Slater
Import upstream version 0.7.3~svn684
2567
# By default was `s,x,x', remove it if useless.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2568
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2569
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1 by Noah Slater
Import upstream version 0.7.3~svn684
2570
2571
# expand $ac_aux_dir to an absolute path
2572
am_aux_dir=`cd $ac_aux_dir && pwd`
2573
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2574
if test x"${MISSING+set}" != xset; then
2575
  case $am_aux_dir in
2576
  *\ * | *\	*)
2577
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2578
  *)
2579
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2580
  esac
2581
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
2582
# Use eval to expand $SHELL
2583
if eval "$MISSING --run true"; then
2584
  am_missing_run="$MISSING --run "
2585
else
2586
  am_missing_run=
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2587
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2588
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2589
fi
2590
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2591
if test x"${install_sh}" != xset; then
2592
  case $am_aux_dir in
2593
  *\ * | *\	*)
2594
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2595
  *)
2596
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2597
  esac
2598
fi
2599
2600
# Installed binaries are usually stripped using `strip' when the user
2601
# run `make install-strip'.  However `strip' might not be the right
2602
# tool to use in cross-compilation environments, therefore Automake
2603
# will honor the `STRIP' environment variable to overrule this program.
2604
if test "$cross_compiling" != no; then
2605
  if test -n "$ac_tool_prefix"; then
2606
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2607
set dummy ${ac_tool_prefix}strip; ac_word=$2
2608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609
$as_echo_n "checking for $ac_word... " >&6; }
2610
if test "${ac_cv_prog_STRIP+set}" = set; then :
2611
  $as_echo_n "(cached) " >&6
2612
else
2613
  if test -n "$STRIP"; then
2614
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2615
else
2616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617
for as_dir in $PATH
2618
do
2619
  IFS=$as_save_IFS
2620
  test -z "$as_dir" && as_dir=.
2621
    for ac_exec_ext in '' $ac_executable_extensions; do
2622
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2624
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625
    break 2
2626
  fi
2627
done
2628
  done
2629
IFS=$as_save_IFS
2630
2631
fi
2632
fi
2633
STRIP=$ac_cv_prog_STRIP
2634
if test -n "$STRIP"; then
2635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2636
$as_echo "$STRIP" >&6; }
2637
else
2638
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639
$as_echo "no" >&6; }
2640
fi
2641
2642
2643
fi
2644
if test -z "$ac_cv_prog_STRIP"; then
2645
  ac_ct_STRIP=$STRIP
2646
  # Extract the first word of "strip", so it can be a program name with args.
2647
set dummy strip; ac_word=$2
2648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649
$as_echo_n "checking for $ac_word... " >&6; }
2650
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2651
  $as_echo_n "(cached) " >&6
2652
else
2653
  if test -n "$ac_ct_STRIP"; then
2654
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2655
else
2656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657
for as_dir in $PATH
2658
do
2659
  IFS=$as_save_IFS
2660
  test -z "$as_dir" && as_dir=.
2661
    for ac_exec_ext in '' $ac_executable_extensions; do
2662
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663
    ac_cv_prog_ac_ct_STRIP="strip"
2664
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665
    break 2
2666
  fi
2667
done
2668
  done
2669
IFS=$as_save_IFS
2670
2671
fi
2672
fi
2673
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2674
if test -n "$ac_ct_STRIP"; then
2675
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2676
$as_echo "$ac_ct_STRIP" >&6; }
2677
else
2678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679
$as_echo "no" >&6; }
2680
fi
2681
2682
  if test "x$ac_ct_STRIP" = x; then
2683
    STRIP=":"
2684
  else
2685
    case $cross_compiling:$ac_tool_warned in
2686
yes:)
2687
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2688
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2689
ac_tool_warned=yes ;;
2690
esac
2691
    STRIP=$ac_ct_STRIP
2692
  fi
2693
else
2694
  STRIP="$ac_cv_prog_STRIP"
2695
fi
2696
2697
fi
2698
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2699
2700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2701
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
2702
if test -z "$MKDIR_P"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2703
  if test "${ac_cv_path_mkdir+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2704
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
2705
else
1.1.2 by Noah Slater
Import upstream version 0.8.0
2706
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2708
do
2709
  IFS=$as_save_IFS
2710
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2711
    for ac_prog in mkdir gmkdir; do
1.1.2 by Noah Slater
Import upstream version 0.8.0
2712
	 for ac_exec_ext in '' $ac_executable_extensions; do
2713
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2714
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2715
	     'mkdir (GNU coreutils) '* | \
2716
	     'mkdir (coreutils) '* | \
2717
	     'mkdir (fileutils) '4.1*)
2718
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2719
	       break 3;;
2720
	   esac
2721
	 done
2722
       done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2723
  done
1.1.2 by Noah Slater
Import upstream version 0.8.0
2724
IFS=$as_save_IFS
2725
2726
fi
2727
2728
  if test "${ac_cv_path_mkdir+set}" = set; then
2729
    MKDIR_P="$ac_cv_path_mkdir -p"
1 by Noah Slater
Import upstream version 0.7.3~svn684
2730
  else
1.1.2 by Noah Slater
Import upstream version 0.8.0
2731
    # As a last resort, use the slow shell script.  Don't cache a
2732
    # value for MKDIR_P within a source directory, because that will
2733
    # break other packages using the cache if that directory is
2734
    # removed, or if the value is a relative name.
2735
    test -d ./--version && rmdir ./--version
2736
    MKDIR_P="$ac_install_sh -d"
1 by Noah Slater
Import upstream version 0.7.3~svn684
2737
  fi
2738
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2740
$as_echo "$MKDIR_P" >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
2741
2742
mkdir_p="$MKDIR_P"
2743
case $mkdir_p in
2744
  [\\/$]* | ?:[\\/]*) ;;
2745
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2746
esac
1 by Noah Slater
Import upstream version 0.7.3~svn684
2747
2748
for ac_prog in gawk mawk nawk awk
2749
do
2750
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2751
set dummy $ac_prog; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2753
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2754
if test "${ac_cv_prog_AWK+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2755
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
2756
else
2757
  if test -n "$AWK"; then
2758
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2759
else
2760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761
for as_dir in $PATH
2762
do
2763
  IFS=$as_save_IFS
2764
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2765
    for ac_exec_ext in '' $ac_executable_extensions; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
2766
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767
    ac_cv_prog_AWK="$ac_prog"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2768
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
2769
    break 2
2770
  fi
2771
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2772
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
2773
IFS=$as_save_IFS
2774
2775
fi
2776
fi
2777
AWK=$ac_cv_prog_AWK
2778
if test -n "$AWK"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2780
$as_echo "$AWK" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
2781
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2783
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
2784
fi
2785
2786
2787
  test -n "$AWK" && break
2788
done
2789
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2791
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2792
set x ${MAKE-make}
2793
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2794
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2795
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
2796
else
2797
  cat >conftest.make <<\_ACEOF
2798
SHELL = /bin/sh
2799
all:
2800
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2801
_ACEOF
2802
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2803
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2804
  *@@@%%%=?*=@@@%%%*)
2805
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2806
  *)
2807
    eval ac_cv_prog_make_${ac_make}_set=no;;
2808
esac
2809
rm -f conftest.make
2810
fi
2811
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2812
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2813
$as_echo "yes" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
2814
  SET_MAKE=
2815
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2816
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2817
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
2818
  SET_MAKE="MAKE=${MAKE-make}"
2819
fi
2820
2821
rm -rf .tst 2>/dev/null
2822
mkdir .tst 2>/dev/null
2823
if test -d .tst; then
2824
  am__leading_dot=.
2825
else
2826
  am__leading_dot=_
2827
fi
2828
rmdir .tst 2>/dev/null
2829
1.1.2 by Noah Slater
Import upstream version 0.8.0
2830
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2831
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2832
  # is not polluted with repeated "-I."
2833
  am__isrc=' -I$(srcdir)'
2834
  # test to see if srcdir already configured
2835
  if test -f $srcdir/config.status; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2836
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.1.2 by Noah Slater
Import upstream version 0.8.0
2837
  fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
2838
fi
2839
2840
# test whether we have cygpath
2841
if test -z "$CYGPATH_W"; then
2842
  if (cygpath --version) >/dev/null 2>/dev/null; then
2843
    CYGPATH_W='cygpath -w'
2844
  else
2845
    CYGPATH_W=echo
2846
  fi
2847
fi
2848
2849
2850
# Define the identity of the package.
1.1.2 by Noah Slater
Import upstream version 0.8.0
2851
 PACKAGE='apache-couchdb'
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2852
 VERSION='0.11.0'
1 by Noah Slater
Import upstream version 0.7.3~svn684
2853
2854
2855
cat >>confdefs.h <<_ACEOF
2856
#define PACKAGE "$PACKAGE"
2857
_ACEOF
2858
2859
2860
cat >>confdefs.h <<_ACEOF
2861
#define VERSION "$VERSION"
2862
_ACEOF
2863
2864
# Some tools Automake needs.
2865
2866
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2867
2868
2869
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2870
2871
2872
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2873
2874
2875
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2876
2877
2878
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2879
2880
# We need awk for the "check" target.  The system "awk" is bad on
2881
# some platforms.
2882
# Always define AMTAR for backward compatibility.
2883
2884
AMTAR=${AMTAR-"${am_missing_run}tar"}
2885
2886
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2887
2888
2889
2890
2891
2892
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2893
DEPDIR="${am__leading_dot}deps"
2894
2895
ac_config_commands="$ac_config_commands depfiles"
2896
2897
2898
am_make=${MAKE-make}
2899
cat > confinc << 'END'
2900
am__doit:
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2901
	@echo this is the am__doit target
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2902
.PHONY: am__doit
2903
END
2904
# If we don't find an include directive, just comment out the code.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2906
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2907
am__include="#"
2908
am__quote=
2909
_am_result=none
2910
# First try GNU make style include.
2911
echo "include confinc" > confmf
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2912
# Ignore all kinds of additional output from `make'.
2913
case `$am_make -s -f confmf 2> /dev/null` in #(
2914
*the\ am__doit\ target*)
2915
  am__include=include
2916
  am__quote=
2917
  _am_result=GNU
2918
  ;;
2919
esac
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2920
# Now try BSD make style include.
2921
if test "$am__include" = "#"; then
2922
   echo '.include "confinc"' > confmf
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2923
   case `$am_make -s -f confmf 2> /dev/null` in #(
2924
   *the\ am__doit\ target*)
2925
     am__include=.include
2926
     am__quote="\""
2927
     _am_result=BSD
2928
     ;;
2929
   esac
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2930
fi
2931
2932
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2934
$as_echo "$_am_result" >&6; }
2935
rm -f confinc confmf
2936
2937
# Check whether --enable-dependency-tracking was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2938
if test "${enable_dependency_tracking+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2939
  enableval=$enable_dependency_tracking;
2940
fi
2941
2942
if test "x$enable_dependency_tracking" != xno; then
2943
  am_depcomp="$ac_aux_dir/depcomp"
2944
  AMDEPBACKSLASH='\'
2945
fi
2946
 if test "x$enable_dependency_tracking" != xno; then
2947
  AMDEP_TRUE=
2948
  AMDEP_FALSE='#'
2949
else
2950
  AMDEP_TRUE='#'
2951
  AMDEP_FALSE=
2952
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
2953
2954
2955
ac_ext=c
2956
ac_cpp='$CPP $CPPFLAGS'
2957
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960
if test -n "$ac_tool_prefix"; then
2961
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2962
set dummy ${ac_tool_prefix}gcc; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2964
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2965
if test "${ac_cv_prog_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2966
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
2967
else
2968
  if test -n "$CC"; then
2969
  ac_cv_prog_CC="$CC" # Let the user override the test.
2970
else
2971
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972
for as_dir in $PATH
2973
do
2974
  IFS=$as_save_IFS
2975
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2976
    for ac_exec_ext in '' $ac_executable_extensions; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
2977
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2979
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
2980
    break 2
2981
  fi
2982
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2983
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
2984
IFS=$as_save_IFS
2985
2986
fi
2987
fi
2988
CC=$ac_cv_prog_CC
2989
if test -n "$CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2990
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2991
$as_echo "$CC" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
2992
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
2993
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
2994
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
2995
fi
2996
2997
2998
fi
2999
if test -z "$ac_cv_prog_CC"; then
3000
  ac_ct_CC=$CC
3001
  # Extract the first word of "gcc", so it can be a program name with args.
3002
set dummy gcc; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3004
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3005
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3006
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
3007
else
3008
  if test -n "$ac_ct_CC"; then
3009
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010
else
3011
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012
for as_dir in $PATH
3013
do
3014
  IFS=$as_save_IFS
3015
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3016
    for ac_exec_ext in '' $ac_executable_extensions; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
3017
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018
    ac_cv_prog_ac_ct_CC="gcc"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3019
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
3020
    break 2
3021
  fi
3022
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3023
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
3024
IFS=$as_save_IFS
3025
3026
fi
3027
fi
3028
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029
if test -n "$ac_ct_CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3031
$as_echo "$ac_ct_CC" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3032
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3033
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3034
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3035
fi
3036
3037
  if test "x$ac_ct_CC" = x; then
3038
    CC=""
3039
  else
3040
    case $cross_compiling:$ac_tool_warned in
3041
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3042
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3043
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
3044
ac_tool_warned=yes ;;
3045
esac
3046
    CC=$ac_ct_CC
3047
  fi
3048
else
3049
  CC="$ac_cv_prog_CC"
3050
fi
3051
3052
if test -z "$CC"; then
3053
          if test -n "$ac_tool_prefix"; then
3054
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3055
set dummy ${ac_tool_prefix}cc; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3056
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3057
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3058
if test "${ac_cv_prog_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3059
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
3060
else
3061
  if test -n "$CC"; then
3062
  ac_cv_prog_CC="$CC" # Let the user override the test.
3063
else
3064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065
for as_dir in $PATH
3066
do
3067
  IFS=$as_save_IFS
3068
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3069
    for ac_exec_ext in '' $ac_executable_extensions; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
3070
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071
    ac_cv_prog_CC="${ac_tool_prefix}cc"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3072
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
3073
    break 2
3074
  fi
3075
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3076
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
3077
IFS=$as_save_IFS
3078
3079
fi
3080
fi
3081
CC=$ac_cv_prog_CC
3082
if test -n "$CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3083
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3084
$as_echo "$CC" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3085
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3086
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3087
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3088
fi
3089
3090
3091
  fi
3092
fi
3093
if test -z "$CC"; then
3094
  # Extract the first word of "cc", so it can be a program name with args.
3095
set dummy cc; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3097
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3098
if test "${ac_cv_prog_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3099
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
3100
else
3101
  if test -n "$CC"; then
3102
  ac_cv_prog_CC="$CC" # Let the user override the test.
3103
else
3104
  ac_prog_rejected=no
3105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106
for as_dir in $PATH
3107
do
3108
  IFS=$as_save_IFS
3109
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3110
    for ac_exec_ext in '' $ac_executable_extensions; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
3111
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113
       ac_prog_rejected=yes
3114
       continue
3115
     fi
3116
    ac_cv_prog_CC="cc"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3117
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
3118
    break 2
3119
  fi
3120
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3121
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
3122
IFS=$as_save_IFS
3123
3124
if test $ac_prog_rejected = yes; then
3125
  # We found a bogon in the path, so make sure we never use it.
3126
  set dummy $ac_cv_prog_CC
3127
  shift
3128
  if test $# != 0; then
3129
    # We chose a different compiler from the bogus one.
3130
    # However, it has the same basename, so the bogon will be chosen
3131
    # first if we set CC to just the basename; use the full file name.
3132
    shift
3133
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3134
  fi
3135
fi
3136
fi
3137
fi
3138
CC=$ac_cv_prog_CC
3139
if test -n "$CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3140
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3141
$as_echo "$CC" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3142
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3144
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3145
fi
3146
3147
3148
fi
3149
if test -z "$CC"; then
3150
  if test -n "$ac_tool_prefix"; then
3151
  for ac_prog in cl.exe
3152
  do
3153
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3156
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3157
if test "${ac_cv_prog_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3158
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
3159
else
3160
  if test -n "$CC"; then
3161
  ac_cv_prog_CC="$CC" # Let the user override the test.
3162
else
3163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164
for as_dir in $PATH
3165
do
3166
  IFS=$as_save_IFS
3167
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3168
    for ac_exec_ext in '' $ac_executable_extensions; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
3169
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3171
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
3172
    break 2
3173
  fi
3174
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3175
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
3176
IFS=$as_save_IFS
3177
3178
fi
3179
fi
3180
CC=$ac_cv_prog_CC
3181
if test -n "$CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3182
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3183
$as_echo "$CC" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3184
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3185
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3186
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3187
fi
3188
3189
3190
    test -n "$CC" && break
3191
  done
3192
fi
3193
if test -z "$CC"; then
3194
  ac_ct_CC=$CC
3195
  for ac_prog in cl.exe
3196
do
3197
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3198
set dummy $ac_prog; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3200
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3201
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3202
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
3203
else
3204
  if test -n "$ac_ct_CC"; then
3205
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206
else
3207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208
for as_dir in $PATH
3209
do
3210
  IFS=$as_save_IFS
3211
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3212
    for ac_exec_ext in '' $ac_executable_extensions; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
3213
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214
    ac_cv_prog_ac_ct_CC="$ac_prog"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3215
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
3216
    break 2
3217
  fi
3218
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3219
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
3220
IFS=$as_save_IFS
3221
3222
fi
3223
fi
3224
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225
if test -n "$ac_ct_CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3226
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3227
$as_echo "$ac_ct_CC" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3228
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3229
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3230
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3231
fi
3232
3233
3234
  test -n "$ac_ct_CC" && break
3235
done
3236
3237
  if test "x$ac_ct_CC" = x; then
3238
    CC=""
3239
  else
3240
    case $cross_compiling:$ac_tool_warned in
3241
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3243
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
3244
ac_tool_warned=yes ;;
3245
esac
3246
    CC=$ac_ct_CC
3247
  fi
3248
fi
3249
3250
fi
3251
3252
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3253
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3254
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3255
as_fn_error "no acceptable C compiler found in \$PATH
3256
See \`config.log' for more details." "$LINENO" 5; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3257
3258
# Provide some information about the compiler.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3259
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3260
set X $ac_compile
3261
ac_compiler=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3262
for ac_option in --version -v -V -qversion; do
3263
  { { ac_try="$ac_compiler $ac_option >&5"
3264
case "(($ac_try" in
3265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266
  *) ac_try_echo=$ac_try;;
3267
esac
3268
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269
$as_echo "$ac_try_echo"; } >&5
3270
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3271
  ac_status=$?
3272
  if test -s conftest.err; then
3273
    sed '10a\
3274
... rest of stderr output deleted ...
3275
         10q' conftest.err >conftest.er1
3276
    cat conftest.er1 >&5
3277
    rm -f conftest.er1 conftest.err
3278
  fi
3279
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280
  test $ac_status = 0; }
3281
done
1 by Noah Slater
Import upstream version 0.7.3~svn684
3282
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3283
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
3284
/* end confdefs.h.  */
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3285
#include <stdio.h>
1 by Noah Slater
Import upstream version 0.7.3~svn684
3286
int
3287
main ()
3288
{
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3289
FILE *f = fopen ("conftest.out", "w");
3290
 return ferror (f) || fclose (f) != 0;
1 by Noah Slater
Import upstream version 0.7.3~svn684
3291
3292
  ;
3293
  return 0;
3294
}
3295
_ACEOF
3296
ac_clean_files_save=$ac_clean_files
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3297
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1 by Noah Slater
Import upstream version 0.7.3~svn684
3298
# Try to create an executable without -o first, disregard a.out.
3299
# It will help us diagnose broken compilers, and finding out an intuition
3300
# of exeext.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3302
$as_echo_n "checking for C compiler default output file name... " >&6; }
3303
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
3305
# The possible output files:
3306
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307
1 by Noah Slater
Import upstream version 0.7.3~svn684
3308
ac_rmfiles=
3309
for ac_file in $ac_files
3310
do
3311
  case $ac_file in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3312
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
3313
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314
  esac
3315
done
3316
rm -f $ac_rmfiles
3317
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3318
if { { ac_try="$ac_link_default"
1 by Noah Slater
Import upstream version 0.7.3~svn684
3319
case "(($ac_try" in
3320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321
  *) ac_try_echo=$ac_try;;
3322
esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3323
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324
$as_echo "$ac_try_echo"; } >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
3325
  (eval "$ac_link_default") 2>&5
3326
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3327
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328
  test $ac_status = 0; }; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
3329
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3332
# so that the user can short-circuit this test for compilers unknown to
3333
# Autoconf.
3334
for ac_file in $ac_files ''
3335
do
3336
  test -f "$ac_file" || continue
3337
  case $ac_file in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3338
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1 by Noah Slater
Import upstream version 0.7.3~svn684
3339
	;;
3340
    [ab].out )
3341
	# We found the default executable, but exeext='' is most
3342
	# certainly right.
3343
	break;;
3344
    *.* )
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3345
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1 by Noah Slater
Import upstream version 0.7.3~svn684
3346
	then :; else
3347
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348
	fi
3349
	# We set ac_cv_exeext here because the later test for it is not
3350
	# safe: cross compilers may not add the suffix if given an `-o'
3351
	# argument, so we may need to know it at that point already.
3352
	# Even if this section looks crufty: it has the advantage of
3353
	# actually working.
3354
	break;;
3355
    * )
3356
	break;;
3357
  esac
3358
done
3359
test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361
else
3362
  ac_file=''
3363
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3365
$as_echo "$ac_file" >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3366
if test -z "$ac_file"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3367
  $as_echo "$as_me: failed program was:" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
3368
sed 's/^/| /' conftest.$ac_ext >&5
3369
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3370
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3371
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3372
{ as_fn_set_status 77
3373
as_fn_error "C compiler cannot create executables
3374
See \`config.log' for more details." "$LINENO" 5; }; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3375
fi
3376
ac_exeext=$ac_cv_exeext
3377
3378
# Check that the compiler produces executables we can run.  If not, either
3379
# the compiler is broken, or we cross compile.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3381
$as_echo_n "checking whether the C compiler works... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3382
# If not cross compiling, check that we can run a simple program.
3383
if test "$cross_compiling" != yes; then
3384
  if { ac_try='./$ac_file'
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3385
  { { case "(($ac_try" in
1 by Noah Slater
Import upstream version 0.7.3~svn684
3386
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387
  *) ac_try_echo=$ac_try;;
3388
esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3389
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390
$as_echo "$ac_try_echo"; } >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
3391
  (eval "$ac_try") 2>&5
3392
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3393
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394
  test $ac_status = 0; }; }; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
3395
    cross_compiling=no
3396
  else
3397
    if test "$cross_compiling" = maybe; then
3398
	cross_compiling=yes
3399
    else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3400
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3401
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3402
as_fn_error "cannot run C compiled programs.
3403
If you meant to cross compile, use \`--host'.
3404
See \`config.log' for more details." "$LINENO" 5; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3405
    fi
3406
  fi
3407
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3409
$as_echo "yes" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3410
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3411
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1 by Noah Slater
Import upstream version 0.7.3~svn684
3412
ac_clean_files=$ac_clean_files_save
3413
# Check that the compiler produces executables we can run.  If not, either
3414
# the compiler is broken, or we cross compile.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3416
$as_echo_n "checking whether we are cross compiling... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3418
$as_echo "$cross_compiling" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3419
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3421
$as_echo_n "checking for suffix of executables... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3422
if { { ac_try="$ac_link"
1 by Noah Slater
Import upstream version 0.7.3~svn684
3423
case "(($ac_try" in
3424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425
  *) ac_try_echo=$ac_try;;
3426
esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3427
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428
$as_echo "$ac_try_echo"; } >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
3429
  (eval "$ac_link") 2>&5
3430
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3431
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432
  test $ac_status = 0; }; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
3433
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3434
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3435
# work properly (i.e., refer to `conftest.exe'), while it won't with
3436
# `rm'.
3437
for ac_file in conftest.exe conftest conftest.*; do
3438
  test -f "$ac_file" || continue
3439
  case $ac_file in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3440
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
3441
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442
	  break;;
3443
    * ) break;;
3444
  esac
3445
done
3446
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3447
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3448
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3449
as_fn_error "cannot compute suffix of executables: cannot compile and link
3450
See \`config.log' for more details." "$LINENO" 5; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3451
fi
3452
rm -f conftest$ac_cv_exeext
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3454
$as_echo "$ac_cv_exeext" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3455
3456
rm -f conftest.$ac_ext
3457
EXEEXT=$ac_cv_exeext
3458
ac_exeext=$EXEEXT
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3460
$as_echo_n "checking for suffix of object files... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3461
if test "${ac_cv_objext+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3462
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
3463
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3464
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
3465
/* end confdefs.h.  */
3466
3467
int
3468
main ()
3469
{
3470
3471
  ;
3472
  return 0;
3473
}
3474
_ACEOF
3475
rm -f conftest.o conftest.obj
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3476
if { { ac_try="$ac_compile"
1 by Noah Slater
Import upstream version 0.7.3~svn684
3477
case "(($ac_try" in
3478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479
  *) ac_try_echo=$ac_try;;
3480
esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3481
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482
$as_echo "$ac_try_echo"; } >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
3483
  (eval "$ac_compile") 2>&5
3484
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3485
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486
  test $ac_status = 0; }; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
3487
  for ac_file in conftest.o conftest.obj conftest.*; do
3488
  test -f "$ac_file" || continue;
3489
  case $ac_file in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3490
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
3491
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3492
       break;;
3493
  esac
3494
done
3495
else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3496
  $as_echo "$as_me: failed program was:" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
3497
sed 's/^/| /' conftest.$ac_ext >&5
3498
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3499
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3500
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3501
as_fn_error "cannot compute suffix of object files: cannot compile
3502
See \`config.log' for more details." "$LINENO" 5; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3503
fi
3504
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3505
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3507
$as_echo "$ac_cv_objext" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
3508
OBJEXT=$ac_cv_objext
3509
ac_objext=$OBJEXT
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3511
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3512
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3513
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
3514
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3515
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
3516
/* end confdefs.h.  */
3517
3518
int
3519
main ()
3520
{
3521
#ifndef __GNUC__
3522
       choke me
3523
#endif
3524
3525
  ;
3526
  return 0;
3527
}
3528
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3529
if ac_fn_c_try_compile "$LINENO"; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
3530
  ac_compiler_gnu=yes
3531
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3532
  ac_compiler_gnu=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
3533
fi
3534
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3536
3537
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3539
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3540
if test $ac_compiler_gnu = yes; then
3541
  GCC=yes
3542
else
3543
  GCC=
3544
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
3545
ac_test_CFLAGS=${CFLAGS+set}
3546
ac_save_CFLAGS=$CFLAGS
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3547
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3548
$as_echo_n "checking whether $CC accepts -g... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3549
if test "${ac_cv_prog_cc_g+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3550
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
3551
else
3552
  ac_save_c_werror_flag=$ac_c_werror_flag
3553
   ac_c_werror_flag=yes
3554
   ac_cv_prog_cc_g=no
3555
   CFLAGS="-g"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3556
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3557
/* end confdefs.h.  */
3558
3559
int
3560
main ()
3561
{
3562
3563
  ;
3564
  return 0;
3565
}
3566
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3567
if ac_fn_c_try_compile "$LINENO"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3568
  ac_cv_prog_cc_g=yes
3569
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3570
  CFLAGS=""
3571
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3572
/* end confdefs.h.  */
3573
3574
int
3575
main ()
3576
{
3577
3578
  ;
3579
  return 0;
3580
}
3581
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3582
if ac_fn_c_try_compile "$LINENO"; then :
3583
1.2.6 by Elliot Murphy
Import upstream version 0.10.0
3584
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3585
  ac_c_werror_flag=$ac_save_c_werror_flag
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3586
	 CFLAGS="-g"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3587
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3588
/* end confdefs.h.  */
3589
3590
int
3591
main ()
3592
{
3593
3594
  ;
3595
  return 0;
3596
}
3597
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3598
if ac_fn_c_try_compile "$LINENO"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3599
  ac_cv_prog_cc_g=yes
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3600
fi
3601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602
fi
3603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604
fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606
   ac_c_werror_flag=$ac_save_c_werror_flag
3607
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3609
$as_echo "$ac_cv_prog_cc_g" >&6; }
3610
if test "$ac_test_CFLAGS" = set; then
3611
  CFLAGS=$ac_save_CFLAGS
3612
elif test $ac_cv_prog_cc_g = yes; then
3613
  if test "$GCC" = yes; then
3614
    CFLAGS="-g -O2"
3615
  else
3616
    CFLAGS="-g"
3617
  fi
3618
else
3619
  if test "$GCC" = yes; then
3620
    CFLAGS="-O2"
3621
  else
3622
    CFLAGS=
3623
  fi
3624
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3626
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3627
if test "${ac_cv_prog_cc_c89+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3628
  $as_echo_n "(cached) " >&6
3629
else
3630
  ac_cv_prog_cc_c89=no
3631
ac_save_CC=$CC
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3632
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3633
/* end confdefs.h.  */
3634
#include <stdarg.h>
3635
#include <stdio.h>
3636
#include <sys/types.h>
3637
#include <sys/stat.h>
3638
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3639
struct buf { int x; };
3640
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3641
static char *e (p, i)
3642
     char **p;
3643
     int i;
3644
{
3645
  return p[i];
3646
}
3647
static char *f (char * (*g) (char **, int), char **p, ...)
3648
{
3649
  char *s;
3650
  va_list v;
3651
  va_start (v,p);
3652
  s = g (p, va_arg (v,int));
3653
  va_end (v);
3654
  return s;
3655
}
3656
3657
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3658
   function prototypes and stuff, but not '\xHH' hex character constants.
3659
   These don't provoke an error unfortunately, instead are silently treated
3660
   as 'x'.  The following induces an error, until -std is added to get
3661
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3662
   array size at least.  It's necessary to write '\x00'==0 to get something
3663
   that's true only with -std.  */
3664
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3665
3666
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3667
   inside strings and character constants.  */
3668
#define FOO(x) 'x'
3669
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3670
3671
int test (int i, double x);
3672
struct s1 {int (*f) (int a);};
3673
struct s2 {int (*f) (double a);};
3674
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3675
int argc;
3676
char **argv;
3677
int
3678
main ()
3679
{
3680
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3681
  ;
3682
  return 0;
3683
}
3684
_ACEOF
3685
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3686
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3687
do
3688
  CC="$ac_save_CC $ac_arg"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3689
  if ac_fn_c_try_compile "$LINENO"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3690
  ac_cv_prog_cc_c89=$ac_arg
3691
fi
3692
rm -f core conftest.err conftest.$ac_objext
3693
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3694
done
3695
rm -f conftest.$ac_ext
3696
CC=$ac_save_CC
3697
3698
fi
3699
# AC_CACHE_VAL
3700
case "x$ac_cv_prog_cc_c89" in
3701
  x)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3702
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3703
$as_echo "none needed" >&6; } ;;
3704
  xno)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3705
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3706
$as_echo "unsupported" >&6; } ;;
3707
  *)
3708
    CC="$CC $ac_cv_prog_cc_c89"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3709
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3710
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3711
esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3712
if test "x$ac_cv_prog_cc_c89" != xno; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3713
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3714
fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3715
3716
ac_ext=c
3717
ac_cpp='$CPP $CPPFLAGS'
3718
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721
3722
depcc="$CC"   am_compiler_list=
3723
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3724
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3725
$as_echo_n "checking dependency style of $depcc... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3726
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3727
  $as_echo_n "(cached) " >&6
3728
else
3729
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3730
  # We make a subdir and do the tests there.  Otherwise we can end up
3731
  # making bogus files that we don't know about and never remove.  For
3732
  # instance it was reported that on HP-UX the gcc test will end up
3733
  # making a dummy file named `D' -- because `-MD' means `put the output
3734
  # in D'.
3735
  mkdir conftest.dir
3736
  # Copy depcomp to subdir because otherwise we won't find it if we're
3737
  # using a relative directory.
3738
  cp "$am_depcomp" conftest.dir
3739
  cd conftest.dir
3740
  # We will build objects and dependencies in a subdirectory because
3741
  # it helps to detect inapplicable dependency modes.  For instance
3742
  # both Tru64's cc and ICC support -MD to output dependencies as a
3743
  # side effect of compilation, but ICC will put the dependencies in
3744
  # the current directory while Tru64 will put them in the object
3745
  # directory.
3746
  mkdir sub
3747
3748
  am_cv_CC_dependencies_compiler_type=none
3749
  if test "$am_compiler_list" = ""; then
3750
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3751
  fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3752
  am__universal=false
3753
  case " $depcc " in #(
3754
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3755
     esac
3756
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3757
  for depmode in $am_compiler_list; do
3758
    # Setup a source with many dependencies, because some compilers
3759
    # like to wrap large dependency lists on column 80 (with \), and
3760
    # we should not choose a depcomp mode which is confused by this.
3761
    #
3762
    # We need to recreate these files for each test, as the compiler may
3763
    # overwrite some of them when testing with obscure command lines.
3764
    # This happens at least with the AIX C compiler.
3765
    : > sub/conftest.c
3766
    for i in 1 2 3 4 5 6; do
3767
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3768
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3769
      # Solaris 8's {/usr,}/bin/sh.
3770
      touch sub/conftst$i.h
3771
    done
3772
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3773
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3774
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3775
    # mode.  It turns out that the SunPro C++ compiler does not properly
3776
    # handle `-M -o', and we need to detect this.  Also, some Intel
3777
    # versions had trouble with output in subdirs
3778
    am__obj=sub/conftest.${OBJEXT-o}
3779
    am__minus_obj="-o $am__obj"
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3780
    case $depmode in
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3781
    gcc)
3782
      # This depmode causes a compiler race in universal mode.
3783
      test "$am__universal" = false || continue
3784
      ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3785
    nosideeffect)
3786
      # after this tag, mechanisms are not by side-effect, so they'll
3787
      # only be used when explicitly requested
3788
      if test "x$enable_dependency_tracking" = xyes; then
3789
	continue
3790
      else
3791
	break
3792
      fi
3793
      ;;
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3794
    msvisualcpp | msvcmsys)
3795
      # This compiler won't grok `-c -o', but also, the minuso test has
3796
      # not run yet.  These depmodes are late enough in the game, and
3797
      # so weak that their functioning should not be impacted.
3798
      am__obj=conftest.${OBJEXT-o}
3799
      am__minus_obj=
3800
      ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3801
    none) break ;;
3802
    esac
3803
    if depmode=$depmode \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3804
       source=sub/conftest.c object=$am__obj \
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3805
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3806
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3807
         >/dev/null 2>conftest.err &&
3808
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3809
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3810
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3811
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3812
      # icc doesn't choke on unknown options, it will just issue warnings
3813
      # or remarks (even with -Werror).  So we grep stderr for any message
3814
      # that says an option was ignored or not supported.
3815
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3816
      #   icc: Command line warning: ignoring option '-M'; no argument required
3817
      # The diagnosis changed in icc 8.0:
3818
      #   icc: Command line remark: option '-MP' not supported
3819
      if (grep 'ignoring option' conftest.err ||
3820
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3821
        am_cv_CC_dependencies_compiler_type=$depmode
3822
        break
3823
      fi
3824
    fi
3825
  done
3826
3827
  cd ..
3828
  rm -rf conftest.dir
3829
else
3830
  am_cv_CC_dependencies_compiler_type=none
3831
fi
3832
3833
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3835
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3836
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3837
3838
 if
3839
  test "x$enable_dependency_tracking" != xno \
3840
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3841
  am__fastdepCC_TRUE=
3842
  am__fastdepCC_FALSE='#'
3843
else
3844
  am__fastdepCC_TRUE='#'
3845
  am__fastdepCC_FALSE=
3846
fi
3847
3848
3849
3850
ac_ext=c
3851
ac_cpp='$CPP $CPPFLAGS'
3852
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854
ac_compiler_gnu=$ac_cv_c_compiler_gnu
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3855
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3856
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3857
# On Suns, sometimes $CPP names a directory.
3858
if test -n "$CPP" && test -d "$CPP"; then
3859
  CPP=
3860
fi
3861
if test -z "$CPP"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3862
  if test "${ac_cv_prog_CPP+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3863
  $as_echo_n "(cached) " >&6
3864
else
3865
      # Double quotes because CPP needs to be expanded
3866
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3867
    do
3868
      ac_preproc_ok=false
3869
for ac_c_preproc_warn_flag in '' yes
3870
do
3871
  # Use a header file that comes with gcc, so configuring glibc
3872
  # with a fresh cross-compiler works.
3873
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874
  # <limits.h> exists even on freestanding compilers.
3875
  # On the NeXT, cc -E runs the code through the compiler's parser,
3876
  # not just through cpp. "Syntax error" is here to catch this case.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3877
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3878
/* end confdefs.h.  */
3879
#ifdef __STDC__
3880
# include <limits.h>
3881
#else
3882
# include <assert.h>
3883
#endif
3884
		     Syntax error
3885
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3886
if ac_fn_c_try_cpp "$LINENO"; then :
3887
1.2.6 by Elliot Murphy
Import upstream version 0.10.0
3888
else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3889
  # Broken: fails on valid input.
3890
continue
3891
fi
3892
rm -f conftest.err conftest.$ac_ext
3893
3894
  # OK, works on sane cases.  Now check whether nonexistent headers
3895
  # can be detected and how.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3896
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3897
/* end confdefs.h.  */
3898
#include <ac_nonexistent.h>
3899
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3900
if ac_fn_c_try_cpp "$LINENO"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3901
  # Broken: success on invalid input.
3902
continue
3903
else
3904
  # Passes both tests.
3905
ac_preproc_ok=:
3906
break
3907
fi
3908
rm -f conftest.err conftest.$ac_ext
3909
3910
done
3911
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3912
rm -f conftest.err conftest.$ac_ext
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3913
if $ac_preproc_ok; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3914
  break
3915
fi
3916
3917
    done
3918
    ac_cv_prog_CPP=$CPP
3919
3920
fi
3921
  CPP=$ac_cv_prog_CPP
3922
else
3923
  ac_cv_prog_CPP=$CPP
3924
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3926
$as_echo "$CPP" >&6; }
3927
ac_preproc_ok=false
3928
for ac_c_preproc_warn_flag in '' yes
3929
do
3930
  # Use a header file that comes with gcc, so configuring glibc
3931
  # with a fresh cross-compiler works.
3932
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3933
  # <limits.h> exists even on freestanding compilers.
3934
  # On the NeXT, cc -E runs the code through the compiler's parser,
3935
  # not just through cpp. "Syntax error" is here to catch this case.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3936
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3937
/* end confdefs.h.  */
3938
#ifdef __STDC__
3939
# include <limits.h>
3940
#else
3941
# include <assert.h>
3942
#endif
3943
		     Syntax error
3944
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3945
if ac_fn_c_try_cpp "$LINENO"; then :
3946
1.2.6 by Elliot Murphy
Import upstream version 0.10.0
3947
else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3948
  # Broken: fails on valid input.
3949
continue
3950
fi
3951
rm -f conftest.err conftest.$ac_ext
3952
3953
  # OK, works on sane cases.  Now check whether nonexistent headers
3954
  # can be detected and how.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3955
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3956
/* end confdefs.h.  */
3957
#include <ac_nonexistent.h>
3958
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3959
if ac_fn_c_try_cpp "$LINENO"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3960
  # Broken: success on invalid input.
3961
continue
3962
else
3963
  # Passes both tests.
3964
ac_preproc_ok=:
3965
break
3966
fi
3967
rm -f conftest.err conftest.$ac_ext
3968
3969
done
3970
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3971
rm -f conftest.err conftest.$ac_ext
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3972
if $ac_preproc_ok; then :
3973
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3974
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3975
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3976
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3977
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3978
See \`config.log' for more details." "$LINENO" 5; }
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3979
fi
3980
3981
ac_ext=c
3982
ac_cpp='$CPP $CPPFLAGS'
3983
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
3987
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3989
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
3990
if test "${ac_cv_path_GREP+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
3991
  $as_echo_n "(cached) " >&6
3992
else
3993
  if test -z "$GREP"; then
3994
  ac_path_GREP_found=false
3995
  # Loop through the user's path and test for each of PROGNAME-LIST
3996
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998
do
3999
  IFS=$as_save_IFS
4000
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4001
    for ac_prog in grep ggrep; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4002
    for ac_exec_ext in '' $ac_executable_extensions; do
4003
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4004
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4005
# Check for GNU ac_path_GREP and select it if it is found.
4006
  # Check for GNU $ac_path_GREP
4007
case `"$ac_path_GREP" --version 2>&1` in
4008
*GNU*)
4009
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4010
*)
4011
  ac_count=0
4012
  $as_echo_n 0123456789 >"conftest.in"
4013
  while :
4014
  do
4015
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4016
    mv "conftest.tmp" "conftest.in"
4017
    cp "conftest.in" "conftest.nl"
4018
    $as_echo 'GREP' >> "conftest.nl"
4019
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4021
    as_fn_arith $ac_count + 1 && ac_count=$as_val
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4022
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4023
      # Best one so far, save it but keep looking for a better one
4024
      ac_cv_path_GREP="$ac_path_GREP"
4025
      ac_path_GREP_max=$ac_count
4026
    fi
4027
    # 10*(2^10) chars as input seems more than enough
4028
    test $ac_count -gt 10 && break
4029
  done
4030
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031
esac
4032
4033
      $ac_path_GREP_found && break 3
4034
    done
4035
  done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4036
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4037
IFS=$as_save_IFS
4038
  if test -z "$ac_cv_path_GREP"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4039
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4040
  fi
4041
else
4042
  ac_cv_path_GREP=$GREP
4043
fi
4044
4045
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4047
$as_echo "$ac_cv_path_GREP" >&6; }
4048
 GREP="$ac_cv_path_GREP"
4049
4050
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4052
$as_echo_n "checking for egrep... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4053
if test "${ac_cv_path_EGREP+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4054
  $as_echo_n "(cached) " >&6
4055
else
4056
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057
   then ac_cv_path_EGREP="$GREP -E"
4058
   else
4059
     if test -z "$EGREP"; then
4060
  ac_path_EGREP_found=false
4061
  # Loop through the user's path and test for each of PROGNAME-LIST
4062
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064
do
4065
  IFS=$as_save_IFS
4066
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4067
    for ac_prog in egrep; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4068
    for ac_exec_ext in '' $ac_executable_extensions; do
4069
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4070
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4071
# Check for GNU ac_path_EGREP and select it if it is found.
4072
  # Check for GNU $ac_path_EGREP
4073
case `"$ac_path_EGREP" --version 2>&1` in
4074
*GNU*)
4075
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4076
*)
4077
  ac_count=0
4078
  $as_echo_n 0123456789 >"conftest.in"
4079
  while :
4080
  do
4081
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4082
    mv "conftest.tmp" "conftest.in"
4083
    cp "conftest.in" "conftest.nl"
4084
    $as_echo 'EGREP' >> "conftest.nl"
4085
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4087
    as_fn_arith $ac_count + 1 && ac_count=$as_val
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4088
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4089
      # Best one so far, save it but keep looking for a better one
4090
      ac_cv_path_EGREP="$ac_path_EGREP"
4091
      ac_path_EGREP_max=$ac_count
4092
    fi
4093
    # 10*(2^10) chars as input seems more than enough
4094
    test $ac_count -gt 10 && break
4095
  done
4096
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097
esac
4098
4099
      $ac_path_EGREP_found && break 3
4100
    done
4101
  done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4102
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4103
IFS=$as_save_IFS
4104
  if test -z "$ac_cv_path_EGREP"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4105
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4106
  fi
4107
else
4108
  ac_cv_path_EGREP=$EGREP
4109
fi
4110
4111
   fi
4112
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4114
$as_echo "$ac_cv_path_EGREP" >&6; }
4115
 EGREP="$ac_cv_path_EGREP"
4116
4117
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4119
$as_echo_n "checking for ANSI C header files... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4120
if test "${ac_cv_header_stdc+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4121
  $as_echo_n "(cached) " >&6
4122
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4123
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4124
/* end confdefs.h.  */
4125
#include <stdlib.h>
4126
#include <stdarg.h>
4127
#include <string.h>
4128
#include <float.h>
4129
4130
int
4131
main ()
4132
{
4133
4134
  ;
4135
  return 0;
4136
}
4137
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4138
if ac_fn_c_try_compile "$LINENO"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4139
  ac_cv_header_stdc=yes
4140
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4141
  ac_cv_header_stdc=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4142
fi
4143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144
4145
if test $ac_cv_header_stdc = yes; then
4146
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4147
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4148
/* end confdefs.h.  */
4149
#include <string.h>
4150
4151
_ACEOF
4152
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4153
  $EGREP "memchr" >/dev/null 2>&1; then :
4154
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4155
else
4156
  ac_cv_header_stdc=no
4157
fi
4158
rm -f conftest*
4159
4160
fi
4161
4162
if test $ac_cv_header_stdc = yes; then
4163
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4164
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4165
/* end confdefs.h.  */
4166
#include <stdlib.h>
4167
4168
_ACEOF
4169
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4170
  $EGREP "free" >/dev/null 2>&1; then :
4171
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4172
else
4173
  ac_cv_header_stdc=no
4174
fi
4175
rm -f conftest*
4176
4177
fi
4178
4179
if test $ac_cv_header_stdc = yes; then
4180
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4181
  if test "$cross_compiling" = yes; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
4182
  :
4183
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4184
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4185
/* end confdefs.h.  */
4186
#include <ctype.h>
4187
#include <stdlib.h>
4188
#if ((' ' & 0x0FF) == 0x020)
4189
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4191
#else
4192
# define ISLOWER(c) \
4193
		   (('a' <= (c) && (c) <= 'i') \
4194
		     || ('j' <= (c) && (c) <= 'r') \
4195
		     || ('s' <= (c) && (c) <= 'z'))
4196
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4197
#endif
4198
4199
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4200
int
4201
main ()
4202
{
4203
  int i;
4204
  for (i = 0; i < 256; i++)
4205
    if (XOR (islower (i), ISLOWER (i))
4206
	|| toupper (i) != TOUPPER (i))
4207
      return 2;
4208
  return 0;
4209
}
4210
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4211
if ac_fn_c_try_run "$LINENO"; then :
4212
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4213
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4214
  ac_cv_header_stdc=no
4215
fi
4216
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4217
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4218
fi
4219
4220
fi
4221
fi
4222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4223
$as_echo "$ac_cv_header_stdc" >&6; }
4224
if test $ac_cv_header_stdc = yes; then
4225
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4226
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4227
4228
fi
4229
4230
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4231
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4232
		  inttypes.h stdint.h unistd.h
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4233
do :
4234
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4235
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4236
"
4237
eval as_val=\$$as_ac_Header
4238
   if test "x$as_val" = x""yes; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4239
  cat >>confdefs.h <<_ACEOF
4240
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4241
_ACEOF
4242
4243
fi
4244
4245
done
4246
4247
4248
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4249
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4250
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4251
  MINIX=yes
4252
else
4253
  MINIX=
4254
fi
4255
4256
4257
  if test "$MINIX" = yes; then
4258
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4259
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4260
4261
4262
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4263
4264
4265
$as_echo "#define _MINIX 1" >>confdefs.h
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4266
4267
  fi
4268
4269
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4270
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4271
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4272
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4273
  $as_echo_n "(cached) " >&6
4274
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4275
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4276
/* end confdefs.h.  */
4277
4278
#	  define __EXTENSIONS__ 1
4279
	  $ac_includes_default
4280
int
4281
main ()
4282
{
4283
4284
  ;
4285
  return 0;
4286
}
4287
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4288
if ac_fn_c_try_compile "$LINENO"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4289
  ac_cv_safe_to_define___extensions__=yes
4290
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4291
  ac_cv_safe_to_define___extensions__=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4292
fi
4293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4296
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4297
  test $ac_cv_safe_to_define___extensions__ = yes &&
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4298
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4299
4300
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4301
4302
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4303
4304
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4305
4306
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4307
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4308
4309
4310
# Check whether --enable-shared was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4311
if test "${enable_shared+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4312
  enableval=$enable_shared; p=${PACKAGE-default}
4313
    case $enableval in
4314
    yes) enable_shared=yes ;;
4315
    no) enable_shared=no ;;
4316
    *)
4317
      enable_shared=no
4318
      # Look at the argument we got.  We use all the common list separators.
4319
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4320
      for pkg in $enableval; do
4321
	IFS="$lt_save_ifs"
4322
	if test "X$pkg" = "X$p"; then
4323
	  enable_shared=yes
4324
	fi
4325
      done
4326
      IFS="$lt_save_ifs"
4327
      ;;
4328
    esac
4329
else
4330
  enable_shared=yes
4331
fi
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
# Check whether --enable-static was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4342
if test "${enable_static+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4343
  enableval=$enable_static; p=${PACKAGE-default}
4344
    case $enableval in
4345
    yes) enable_static=yes ;;
4346
    no) enable_static=no ;;
4347
    *)
4348
     enable_static=no
4349
      # Look at the argument we got.  We use all the common list separators.
4350
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4351
      for pkg in $enableval; do
4352
	IFS="$lt_save_ifs"
4353
	if test "X$pkg" = "X$p"; then
4354
	  enable_static=yes
4355
	fi
4356
      done
4357
      IFS="$lt_save_ifs"
4358
      ;;
4359
    esac
4360
else
4361
  enable_static=no
4362
fi
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
ac_ext=c
4374
ac_cpp='$CPP $CPPFLAGS'
4375
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378
if test -n "$ac_tool_prefix"; then
4379
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4380
set dummy ${ac_tool_prefix}gcc; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4382
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4383
if test "${ac_cv_prog_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4384
  $as_echo_n "(cached) " >&6
4385
else
4386
  if test -n "$CC"; then
4387
  ac_cv_prog_CC="$CC" # Let the user override the test.
4388
else
4389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390
for as_dir in $PATH
4391
do
4392
  IFS=$as_save_IFS
4393
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4394
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4395
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4397
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4398
    break 2
4399
  fi
4400
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4401
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4402
IFS=$as_save_IFS
4403
4404
fi
4405
fi
4406
CC=$ac_cv_prog_CC
4407
if test -n "$CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4409
$as_echo "$CC" >&6; }
4410
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4412
$as_echo "no" >&6; }
4413
fi
4414
4415
4416
fi
4417
if test -z "$ac_cv_prog_CC"; then
4418
  ac_ct_CC=$CC
4419
  # Extract the first word of "gcc", so it can be a program name with args.
4420
set dummy gcc; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4422
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4423
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4424
  $as_echo_n "(cached) " >&6
4425
else
4426
  if test -n "$ac_ct_CC"; then
4427
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4428
else
4429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430
for as_dir in $PATH
4431
do
4432
  IFS=$as_save_IFS
4433
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4434
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4435
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436
    ac_cv_prog_ac_ct_CC="gcc"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4437
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4438
    break 2
4439
  fi
4440
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4441
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4442
IFS=$as_save_IFS
4443
4444
fi
4445
fi
4446
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4447
if test -n "$ac_ct_CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4449
$as_echo "$ac_ct_CC" >&6; }
4450
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4452
$as_echo "no" >&6; }
4453
fi
4454
4455
  if test "x$ac_ct_CC" = x; then
4456
    CC=""
4457
  else
4458
    case $cross_compiling:$ac_tool_warned in
4459
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4460
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4461
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4462
ac_tool_warned=yes ;;
4463
esac
4464
    CC=$ac_ct_CC
4465
  fi
4466
else
4467
  CC="$ac_cv_prog_CC"
4468
fi
4469
4470
if test -z "$CC"; then
4471
          if test -n "$ac_tool_prefix"; then
4472
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4473
set dummy ${ac_tool_prefix}cc; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4475
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4476
if test "${ac_cv_prog_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4477
  $as_echo_n "(cached) " >&6
4478
else
4479
  if test -n "$CC"; then
4480
  ac_cv_prog_CC="$CC" # Let the user override the test.
4481
else
4482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483
for as_dir in $PATH
4484
do
4485
  IFS=$as_save_IFS
4486
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4487
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4488
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489
    ac_cv_prog_CC="${ac_tool_prefix}cc"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4490
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4491
    break 2
4492
  fi
4493
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4494
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4495
IFS=$as_save_IFS
4496
4497
fi
4498
fi
4499
CC=$ac_cv_prog_CC
4500
if test -n "$CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4501
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4502
$as_echo "$CC" >&6; }
4503
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4505
$as_echo "no" >&6; }
4506
fi
4507
4508
4509
  fi
4510
fi
4511
if test -z "$CC"; then
4512
  # Extract the first word of "cc", so it can be a program name with args.
4513
set dummy cc; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4515
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4516
if test "${ac_cv_prog_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4517
  $as_echo_n "(cached) " >&6
4518
else
4519
  if test -n "$CC"; then
4520
  ac_cv_prog_CC="$CC" # Let the user override the test.
4521
else
4522
  ac_prog_rejected=no
4523
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524
for as_dir in $PATH
4525
do
4526
  IFS=$as_save_IFS
4527
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4528
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4529
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4531
       ac_prog_rejected=yes
4532
       continue
4533
     fi
4534
    ac_cv_prog_CC="cc"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4535
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4536
    break 2
4537
  fi
4538
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4539
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4540
IFS=$as_save_IFS
4541
4542
if test $ac_prog_rejected = yes; then
4543
  # We found a bogon in the path, so make sure we never use it.
4544
  set dummy $ac_cv_prog_CC
4545
  shift
4546
  if test $# != 0; then
4547
    # We chose a different compiler from the bogus one.
4548
    # However, it has the same basename, so the bogon will be chosen
4549
    # first if we set CC to just the basename; use the full file name.
4550
    shift
4551
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4552
  fi
4553
fi
4554
fi
4555
fi
4556
CC=$ac_cv_prog_CC
4557
if test -n "$CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4558
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4559
$as_echo "$CC" >&6; }
4560
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4561
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4562
$as_echo "no" >&6; }
4563
fi
4564
4565
4566
fi
4567
if test -z "$CC"; then
4568
  if test -n "$ac_tool_prefix"; then
4569
  for ac_prog in cl.exe
4570
  do
4571
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4572
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4574
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4575
if test "${ac_cv_prog_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4576
  $as_echo_n "(cached) " >&6
4577
else
4578
  if test -n "$CC"; then
4579
  ac_cv_prog_CC="$CC" # Let the user override the test.
4580
else
4581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582
for as_dir in $PATH
4583
do
4584
  IFS=$as_save_IFS
4585
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4586
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4587
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4589
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4590
    break 2
4591
  fi
4592
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4593
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4594
IFS=$as_save_IFS
4595
4596
fi
4597
fi
4598
CC=$ac_cv_prog_CC
4599
if test -n "$CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4600
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4601
$as_echo "$CC" >&6; }
4602
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4603
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4604
$as_echo "no" >&6; }
4605
fi
4606
4607
4608
    test -n "$CC" && break
4609
  done
4610
fi
4611
if test -z "$CC"; then
4612
  ac_ct_CC=$CC
4613
  for ac_prog in cl.exe
4614
do
4615
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4616
set dummy $ac_prog; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4618
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4619
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4620
  $as_echo_n "(cached) " >&6
4621
else
4622
  if test -n "$ac_ct_CC"; then
4623
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4624
else
4625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626
for as_dir in $PATH
4627
do
4628
  IFS=$as_save_IFS
4629
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4630
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4631
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632
    ac_cv_prog_ac_ct_CC="$ac_prog"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4633
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4634
    break 2
4635
  fi
4636
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4637
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4638
IFS=$as_save_IFS
4639
4640
fi
4641
fi
4642
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4643
if test -n "$ac_ct_CC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4645
$as_echo "$ac_ct_CC" >&6; }
4646
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4648
$as_echo "no" >&6; }
4649
fi
4650
4651
4652
  test -n "$ac_ct_CC" && break
4653
done
4654
4655
  if test "x$ac_ct_CC" = x; then
4656
    CC=""
4657
  else
4658
    case $cross_compiling:$ac_tool_warned in
4659
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4660
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4661
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662
ac_tool_warned=yes ;;
4663
esac
4664
    CC=$ac_ct_CC
4665
  fi
4666
fi
4667
4668
fi
4669
4670
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4671
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4672
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4673
as_fn_error "no acceptable C compiler found in \$PATH
4674
See \`config.log' for more details." "$LINENO" 5; }
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4675
4676
# Provide some information about the compiler.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4677
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4678
set X $ac_compile
4679
ac_compiler=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4680
for ac_option in --version -v -V -qversion; do
4681
  { { ac_try="$ac_compiler $ac_option >&5"
4682
case "(($ac_try" in
4683
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684
  *) ac_try_echo=$ac_try;;
4685
esac
4686
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4687
$as_echo "$ac_try_echo"; } >&5
4688
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4689
  ac_status=$?
4690
  if test -s conftest.err; then
4691
    sed '10a\
4692
... rest of stderr output deleted ...
4693
         10q' conftest.err >conftest.er1
4694
    cat conftest.er1 >&5
4695
    rm -f conftest.er1 conftest.err
4696
  fi
4697
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4698
  test $ac_status = 0; }
4699
done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4700
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4702
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4703
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4704
  $as_echo_n "(cached) " >&6
4705
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4706
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4707
/* end confdefs.h.  */
4708
4709
int
4710
main ()
4711
{
4712
#ifndef __GNUC__
4713
       choke me
4714
#endif
4715
4716
  ;
4717
  return 0;
4718
}
4719
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4720
if ac_fn_c_try_compile "$LINENO"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4721
  ac_compiler_gnu=yes
4722
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4723
  ac_compiler_gnu=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4724
fi
4725
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4727
4728
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4729
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4730
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4731
if test $ac_compiler_gnu = yes; then
4732
  GCC=yes
4733
else
4734
  GCC=
4735
fi
4736
ac_test_CFLAGS=${CFLAGS+set}
4737
ac_save_CFLAGS=$CFLAGS
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4739
$as_echo_n "checking whether $CC accepts -g... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4740
if test "${ac_cv_prog_cc_g+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4741
  $as_echo_n "(cached) " >&6
4742
else
4743
  ac_save_c_werror_flag=$ac_c_werror_flag
4744
   ac_c_werror_flag=yes
4745
   ac_cv_prog_cc_g=no
4746
   CFLAGS="-g"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4747
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4748
/* end confdefs.h.  */
4749
4750
int
4751
main ()
4752
{
4753
4754
  ;
4755
  return 0;
4756
}
4757
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4758
if ac_fn_c_try_compile "$LINENO"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4759
  ac_cv_prog_cc_g=yes
4760
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4761
  CFLAGS=""
4762
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4763
/* end confdefs.h.  */
4764
4765
int
4766
main ()
4767
{
4768
4769
  ;
4770
  return 0;
4771
}
4772
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4773
if ac_fn_c_try_compile "$LINENO"; then :
4774
1.2.6 by Elliot Murphy
Import upstream version 0.10.0
4775
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4776
  ac_c_werror_flag=$ac_save_c_werror_flag
1 by Noah Slater
Import upstream version 0.7.3~svn684
4777
	 CFLAGS="-g"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4778
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
4779
/* end confdefs.h.  */
4780
4781
int
4782
main ()
4783
{
4784
4785
  ;
4786
  return 0;
4787
}
4788
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4789
if ac_fn_c_try_compile "$LINENO"; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
4790
  ac_cv_prog_cc_g=yes
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4791
fi
4792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793
fi
4794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
4796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797
   ac_c_werror_flag=$ac_save_c_werror_flag
4798
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4800
$as_echo "$ac_cv_prog_cc_g" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
4801
if test "$ac_test_CFLAGS" = set; then
4802
  CFLAGS=$ac_save_CFLAGS
4803
elif test $ac_cv_prog_cc_g = yes; then
4804
  if test "$GCC" = yes; then
4805
    CFLAGS="-g -O2"
4806
  else
4807
    CFLAGS="-g"
4808
  fi
4809
else
4810
  if test "$GCC" = yes; then
4811
    CFLAGS="-O2"
4812
  else
4813
    CFLAGS=
4814
  fi
4815
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4817
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4818
if test "${ac_cv_prog_cc_c89+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4819
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
4820
else
4821
  ac_cv_prog_cc_c89=no
4822
ac_save_CC=$CC
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4823
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
4824
/* end confdefs.h.  */
4825
#include <stdarg.h>
4826
#include <stdio.h>
4827
#include <sys/types.h>
4828
#include <sys/stat.h>
4829
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4830
struct buf { int x; };
4831
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4832
static char *e (p, i)
4833
     char **p;
4834
     int i;
4835
{
4836
  return p[i];
4837
}
4838
static char *f (char * (*g) (char **, int), char **p, ...)
4839
{
4840
  char *s;
4841
  va_list v;
4842
  va_start (v,p);
4843
  s = g (p, va_arg (v,int));
4844
  va_end (v);
4845
  return s;
4846
}
4847
4848
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4849
   function prototypes and stuff, but not '\xHH' hex character constants.
4850
   These don't provoke an error unfortunately, instead are silently treated
4851
   as 'x'.  The following induces an error, until -std is added to get
4852
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4853
   array size at least.  It's necessary to write '\x00'==0 to get something
4854
   that's true only with -std.  */
4855
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4856
4857
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4858
   inside strings and character constants.  */
4859
#define FOO(x) 'x'
4860
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4861
4862
int test (int i, double x);
4863
struct s1 {int (*f) (int a);};
4864
struct s2 {int (*f) (double a);};
4865
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4866
int argc;
4867
char **argv;
4868
int
4869
main ()
4870
{
4871
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4872
  ;
4873
  return 0;
4874
}
4875
_ACEOF
4876
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4877
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4878
do
4879
  CC="$ac_save_CC $ac_arg"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4880
  if ac_fn_c_try_compile "$LINENO"; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
4881
  ac_cv_prog_cc_c89=$ac_arg
4882
fi
4883
rm -f core conftest.err conftest.$ac_objext
4884
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4885
done
4886
rm -f conftest.$ac_ext
4887
CC=$ac_save_CC
4888
4889
fi
4890
# AC_CACHE_VAL
4891
case "x$ac_cv_prog_cc_c89" in
4892
  x)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4893
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4894
$as_echo "none needed" >&6; } ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
4895
  xno)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4896
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4897
$as_echo "unsupported" >&6; } ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
4898
  *)
4899
    CC="$CC $ac_cv_prog_cc_c89"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4900
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4901
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
4902
esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4903
if test "x$ac_cv_prog_cc_c89" != xno; then :
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
4904
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4905
fi
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
4906
4907
ac_ext=c
4908
ac_cpp='$CPP $CPPFLAGS'
4909
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1 by Noah Slater
Import upstream version 0.7.3~svn684
4912
4913
depcc="$CC"   am_compiler_list=
4914
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4916
$as_echo_n "checking dependency style of $depcc... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4917
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
4918
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
4919
else
4920
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4921
  # We make a subdir and do the tests there.  Otherwise we can end up
4922
  # making bogus files that we don't know about and never remove.  For
4923
  # instance it was reported that on HP-UX the gcc test will end up
4924
  # making a dummy file named `D' -- because `-MD' means `put the output
4925
  # in D'.
4926
  mkdir conftest.dir
4927
  # Copy depcomp to subdir because otherwise we won't find it if we're
4928
  # using a relative directory.
4929
  cp "$am_depcomp" conftest.dir
4930
  cd conftest.dir
4931
  # We will build objects and dependencies in a subdirectory because
4932
  # it helps to detect inapplicable dependency modes.  For instance
4933
  # both Tru64's cc and ICC support -MD to output dependencies as a
4934
  # side effect of compilation, but ICC will put the dependencies in
4935
  # the current directory while Tru64 will put them in the object
4936
  # directory.
4937
  mkdir sub
4938
4939
  am_cv_CC_dependencies_compiler_type=none
4940
  if test "$am_compiler_list" = ""; then
4941
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4942
  fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4943
  am__universal=false
4944
  case " $depcc " in #(
4945
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4946
     esac
4947
1 by Noah Slater
Import upstream version 0.7.3~svn684
4948
  for depmode in $am_compiler_list; do
4949
    # Setup a source with many dependencies, because some compilers
4950
    # like to wrap large dependency lists on column 80 (with \), and
4951
    # we should not choose a depcomp mode which is confused by this.
4952
    #
4953
    # We need to recreate these files for each test, as the compiler may
4954
    # overwrite some of them when testing with obscure command lines.
4955
    # This happens at least with the AIX C compiler.
4956
    : > sub/conftest.c
4957
    for i in 1 2 3 4 5 6; do
4958
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4959
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4960
      # Solaris 8's {/usr,}/bin/sh.
4961
      touch sub/conftst$i.h
4962
    done
4963
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4964
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4965
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4966
    # mode.  It turns out that the SunPro C++ compiler does not properly
4967
    # handle `-M -o', and we need to detect this.  Also, some Intel
4968
    # versions had trouble with output in subdirs
4969
    am__obj=sub/conftest.${OBJEXT-o}
4970
    am__minus_obj="-o $am__obj"
1 by Noah Slater
Import upstream version 0.7.3~svn684
4971
    case $depmode in
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4972
    gcc)
4973
      # This depmode causes a compiler race in universal mode.
4974
      test "$am__universal" = false || continue
4975
      ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
4976
    nosideeffect)
4977
      # after this tag, mechanisms are not by side-effect, so they'll
4978
      # only be used when explicitly requested
4979
      if test "x$enable_dependency_tracking" = xyes; then
4980
	continue
4981
      else
4982
	break
4983
      fi
4984
      ;;
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4985
    msvisualcpp | msvcmsys)
4986
      # This compiler won't grok `-c -o', but also, the minuso test has
4987
      # not run yet.  These depmodes are late enough in the game, and
4988
      # so weak that their functioning should not be impacted.
4989
      am__obj=conftest.${OBJEXT-o}
4990
      am__minus_obj=
4991
      ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
4992
    none) break ;;
4993
    esac
4994
    if depmode=$depmode \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4995
       source=sub/conftest.c object=$am__obj \
1 by Noah Slater
Import upstream version 0.7.3~svn684
4996
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
4997
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1 by Noah Slater
Import upstream version 0.7.3~svn684
4998
         >/dev/null 2>conftest.err &&
1.1.2 by Noah Slater
Import upstream version 0.8.0
4999
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1 by Noah Slater
Import upstream version 0.7.3~svn684
5000
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5001
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1 by Noah Slater
Import upstream version 0.7.3~svn684
5002
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5003
      # icc doesn't choke on unknown options, it will just issue warnings
5004
      # or remarks (even with -Werror).  So we grep stderr for any message
5005
      # that says an option was ignored or not supported.
5006
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5007
      #   icc: Command line warning: ignoring option '-M'; no argument required
5008
      # The diagnosis changed in icc 8.0:
5009
      #   icc: Command line remark: option '-MP' not supported
5010
      if (grep 'ignoring option' conftest.err ||
5011
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5012
        am_cv_CC_dependencies_compiler_type=$depmode
5013
        break
5014
      fi
5015
    fi
5016
  done
5017
5018
  cd ..
5019
  rm -rf conftest.dir
5020
else
5021
  am_cv_CC_dependencies_compiler_type=none
5022
fi
5023
5024
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5026
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
5027
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5028
1.1.2 by Noah Slater
Import upstream version 0.8.0
5029
 if
1 by Noah Slater
Import upstream version 0.7.3~svn684
5030
  test "x$enable_dependency_tracking" != xno \
5031
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5032
  am__fastdepCC_TRUE=
5033
  am__fastdepCC_FALSE='#'
5034
else
5035
  am__fastdepCC_TRUE='#'
5036
  am__fastdepCC_FALSE=
5037
fi
5038
5039
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5040
case `pwd` in
5041
  *\ * | *\	*)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5042
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5043
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5044
esac
5045
5046
5047
5048
macro_version='2.2.6'
5049
macro_revision='1.3012'
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
ltmain="$ac_aux_dir/ltmain.sh"
1 by Noah Slater
Import upstream version 0.7.3~svn684
5064
5065
# Make sure we can run config.sub.
5066
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5067
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
5068
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5070
$as_echo_n "checking build system type... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5071
if test "${ac_cv_build+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5072
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
5073
else
5074
  ac_build_alias=$build_alias
5075
test "x$ac_build_alias" = x &&
5076
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5077
test "x$ac_build_alias" = x &&
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5078
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
5079
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5080
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
5081
5082
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5084
$as_echo "$ac_cv_build" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
5085
case $ac_cv_build in
5086
*-*-*) ;;
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5087
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
5088
esac
5089
build=$ac_cv_build
5090
ac_save_IFS=$IFS; IFS='-'
5091
set x $ac_cv_build
5092
shift
5093
build_cpu=$1
5094
build_vendor=$2
5095
shift; shift
5096
# Remember, the first character of IFS is used to create $*,
5097
# except with old shells:
5098
build_os=$*
5099
IFS=$ac_save_IFS
5100
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5101
5102
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5103
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5104
$as_echo_n "checking host system type... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5105
if test "${ac_cv_host+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5106
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
5107
else
5108
  if test "x$host_alias" = x; then
5109
  ac_cv_host=$ac_cv_build
5110
else
5111
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5112
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
5113
fi
5114
5115
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5117
$as_echo "$ac_cv_host" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
5118
case $ac_cv_host in
5119
*-*-*) ;;
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5120
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
5121
esac
5122
host=$ac_cv_host
5123
ac_save_IFS=$IFS; IFS='-'
5124
set x $ac_cv_host
5125
shift
5126
host_cpu=$1
5127
host_vendor=$2
5128
shift; shift
5129
# Remember, the first character of IFS is used to create $*,
5130
# except with old shells:
5131
host_os=$*
5132
IFS=$ac_save_IFS
5133
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5134
5135
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5137
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5138
if test "${ac_cv_path_SED+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5139
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
5140
else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5141
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5142
     for ac_i in 1 2 3 4 5 6 7; do
5143
       ac_script="$ac_script$as_nl$ac_script"
5144
     done
5145
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5146
     { ac_script=; unset ac_script;}
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5147
     if test -z "$SED"; then
5148
  ac_path_SED_found=false
5149
  # Loop through the user's path and test for each of PROGNAME-LIST
5150
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1 by Noah Slater
Import upstream version 0.7.3~svn684
5151
for as_dir in $PATH
5152
do
5153
  IFS=$as_save_IFS
5154
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5155
    for ac_prog in sed gsed; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
5156
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5157
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5158
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5159
# Check for GNU ac_path_SED and select it if it is found.
5160
  # Check for GNU $ac_path_SED
5161
case `"$ac_path_SED" --version 2>&1` in
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5162
*GNU*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5163
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5164
*)
5165
  ac_count=0
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5166
  $as_echo_n 0123456789 >"conftest.in"
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5167
  while :
5168
  do
5169
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5170
    mv "conftest.tmp" "conftest.in"
5171
    cp "conftest.in" "conftest.nl"
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5172
    $as_echo '' >> "conftest.nl"
5173
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5174
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5175
    as_fn_arith $ac_count + 1 && ac_count=$as_val
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5176
    if test $ac_count -gt ${ac_path_SED_max-0}; then
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5177
      # Best one so far, save it but keep looking for a better one
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5178
      ac_cv_path_SED="$ac_path_SED"
5179
      ac_path_SED_max=$ac_count
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5180
    fi
5181
    # 10*(2^10) chars as input seems more than enough
5182
    test $ac_count -gt 10 && break
5183
  done
5184
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5185
esac
5186
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5187
      $ac_path_SED_found && break 3
5188
    done
5189
  done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5190
  done
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5191
IFS=$as_save_IFS
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5192
  if test -z "$ac_cv_path_SED"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5193
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5194
  fi
5195
else
5196
  ac_cv_path_SED=$SED
5197
fi
5198
5199
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5201
$as_echo "$ac_cv_path_SED" >&6; }
5202
 SED="$ac_cv_path_SED"
5203
  rm -f conftest.sed
5204
5205
test -z "$SED" && SED=sed
5206
Xsed="$SED -e 1s/^X//"
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5219
$as_echo_n "checking for fgrep... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5220
if test "${ac_cv_path_FGREP+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5221
  $as_echo_n "(cached) " >&6
5222
else
5223
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5224
   then ac_cv_path_FGREP="$GREP -F"
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5225
   else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5226
     if test -z "$FGREP"; then
5227
  ac_path_FGREP_found=false
5228
  # Loop through the user's path and test for each of PROGNAME-LIST
5229
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5230
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5231
do
5232
  IFS=$as_save_IFS
5233
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5234
    for ac_prog in fgrep; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5235
    for ac_exec_ext in '' $ac_executable_extensions; do
5236
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5237
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5238
# Check for GNU ac_path_FGREP and select it if it is found.
5239
  # Check for GNU $ac_path_FGREP
5240
case `"$ac_path_FGREP" --version 2>&1` in
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5241
*GNU*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5242
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5243
*)
5244
  ac_count=0
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5245
  $as_echo_n 0123456789 >"conftest.in"
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5246
  while :
5247
  do
5248
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5249
    mv "conftest.tmp" "conftest.in"
5250
    cp "conftest.in" "conftest.nl"
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5251
    $as_echo 'FGREP' >> "conftest.nl"
5252
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5253
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5254
    as_fn_arith $ac_count + 1 && ac_count=$as_val
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5255
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5256
      # Best one so far, save it but keep looking for a better one
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5257
      ac_cv_path_FGREP="$ac_path_FGREP"
5258
      ac_path_FGREP_max=$ac_count
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5259
    fi
5260
    # 10*(2^10) chars as input seems more than enough
5261
    test $ac_count -gt 10 && break
5262
  done
5263
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5264
esac
5265
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5266
      $ac_path_FGREP_found && break 3
5267
    done
5268
  done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5269
  done
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5270
IFS=$as_save_IFS
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5271
  if test -z "$ac_cv_path_FGREP"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5272
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5273
  fi
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5274
else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5275
  ac_cv_path_FGREP=$FGREP
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5276
fi
5277
5278
   fi
5279
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5281
$as_echo "$ac_cv_path_FGREP" >&6; }
5282
 FGREP="$ac_cv_path_FGREP"
5283
5284
5285
test -z "$GREP" && GREP=grep
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
5302
1 by Noah Slater
Import upstream version 0.7.3~svn684
5303
5304
5305
# Check whether --with-gnu-ld was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5306
if test "${with_gnu_ld+set}" = set; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
5307
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5308
else
5309
  with_gnu_ld=no
5310
fi
5311
5312
ac_prog=ld
5313
if test "$GCC" = yes; then
5314
  # Check if gcc -print-prog-name=ld gives a path.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5315
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5316
$as_echo_n "checking for ld used by $CC... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
5317
  case $host in
5318
  *-*-mingw*)
5319
    # gcc leaves a trailing carriage return which upsets mingw
5320
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5321
  *)
5322
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5323
  esac
5324
  case $ac_prog in
5325
    # Accept absolute paths.
5326
    [\\/]* | ?:[\\/]*)
5327
      re_direlt='/[^/][^/]*/\.\./'
5328
      # Canonicalize the pathname of ld
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5329
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5330
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5331
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1 by Noah Slater
Import upstream version 0.7.3~svn684
5332
      done
5333
      test -z "$LD" && LD="$ac_prog"
5334
      ;;
5335
  "")
5336
    # If it fails, then pretend we aren't using GCC.
5337
    ac_prog=ld
5338
    ;;
5339
  *)
5340
    # If it is relative, then search for the first ld in PATH.
5341
    with_gnu_ld=unknown
5342
    ;;
5343
  esac
5344
elif test "$with_gnu_ld" = yes; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5345
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5346
$as_echo_n "checking for GNU ld... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
5347
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5348
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5349
$as_echo_n "checking for non-GNU ld... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
5350
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5351
if test "${lt_cv_path_LD+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5352
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
5353
else
5354
  if test -z "$LD"; then
5355
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5356
  for ac_dir in $PATH; do
5357
    IFS="$lt_save_ifs"
5358
    test -z "$ac_dir" && ac_dir=.
5359
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5360
      lt_cv_path_LD="$ac_dir/$ac_prog"
5361
      # Check to see if the program is GNU ld.  I'd rather use --version,
5362
      # but apparently some variants of GNU ld only accept -v.
5363
      # Break only if it was the GNU/non-GNU ld that we prefer.
5364
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5365
      *GNU* | *'with BFD'*)
5366
	test "$with_gnu_ld" != no && break
5367
	;;
5368
      *)
5369
	test "$with_gnu_ld" != yes && break
5370
	;;
5371
      esac
5372
    fi
5373
  done
5374
  IFS="$lt_save_ifs"
5375
else
5376
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5377
fi
5378
fi
5379
5380
LD="$lt_cv_path_LD"
5381
if test -n "$LD"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5382
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5383
$as_echo "$LD" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
5384
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5385
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5386
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
5387
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5388
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5390
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5391
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5392
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
5393
else
5394
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5395
case `$LD -v 2>&1 </dev/null` in
5396
*GNU* | *'with BFD'*)
5397
  lt_cv_prog_gnu_ld=yes
5398
  ;;
5399
*)
5400
  lt_cv_prog_gnu_ld=no
5401
  ;;
5402
esac
5403
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5405
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
5406
with_gnu_ld=$lt_cv_prog_gnu_ld
5407
5408
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5409
5410
5411
5412
5413
5414
5415
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5417
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5418
if test "${lt_cv_path_NM+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5419
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
5420
else
5421
  if test -n "$NM"; then
5422
  # Let the user override the test.
5423
  lt_cv_path_NM="$NM"
5424
else
5425
  lt_nm_to_check="${ac_tool_prefix}nm"
5426
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5427
    lt_nm_to_check="$lt_nm_to_check nm"
5428
  fi
5429
  for lt_tmp_nm in $lt_nm_to_check; do
5430
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5431
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5432
      IFS="$lt_save_ifs"
5433
      test -z "$ac_dir" && ac_dir=.
5434
      tmp_nm="$ac_dir/$lt_tmp_nm"
5435
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5436
	# Check to see if the nm accepts a BSD-compat flag.
5437
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5438
	#   nm: unknown option "B" ignored
5439
	# Tru64's nm complains that /dev/null is an invalid object file
5440
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5441
	*/dev/null* | *'Invalid file or object type'*)
5442
	  lt_cv_path_NM="$tmp_nm -B"
5443
	  break
5444
	  ;;
5445
	*)
5446
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5447
	  */dev/null*)
5448
	    lt_cv_path_NM="$tmp_nm -p"
5449
	    break
5450
	    ;;
5451
	  *)
5452
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5453
	    continue # so that we can try to find one that supports BSD flags
5454
	    ;;
5455
	  esac
5456
	  ;;
5457
	esac
5458
      fi
5459
    done
5460
    IFS="$lt_save_ifs"
5461
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5462
  : ${lt_cv_path_NM=no}
5463
fi
5464
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5466
$as_echo "$lt_cv_path_NM" >&6; }
5467
if test "$lt_cv_path_NM" != "no"; then
5468
  NM="$lt_cv_path_NM"
5469
else
5470
  # Didn't find any BSD compatible name lister, look for dumpbin.
5471
  if test -n "$ac_tool_prefix"; then
5472
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5473
  do
5474
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5475
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5476
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5477
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5478
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5479
  $as_echo_n "(cached) " >&6
5480
else
5481
  if test -n "$DUMPBIN"; then
5482
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5483
else
5484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485
for as_dir in $PATH
5486
do
5487
  IFS=$as_save_IFS
5488
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5489
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5490
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5492
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5493
    break 2
5494
  fi
5495
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5496
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5497
IFS=$as_save_IFS
5498
5499
fi
5500
fi
5501
DUMPBIN=$ac_cv_prog_DUMPBIN
5502
if test -n "$DUMPBIN"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5503
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5504
$as_echo "$DUMPBIN" >&6; }
5505
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5506
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5507
$as_echo "no" >&6; }
5508
fi
5509
5510
5511
    test -n "$DUMPBIN" && break
5512
  done
5513
fi
5514
if test -z "$DUMPBIN"; then
5515
  ac_ct_DUMPBIN=$DUMPBIN
5516
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5517
do
5518
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5519
set dummy $ac_prog; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5521
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5522
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5523
  $as_echo_n "(cached) " >&6
5524
else
5525
  if test -n "$ac_ct_DUMPBIN"; then
5526
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5527
else
5528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529
for as_dir in $PATH
5530
do
5531
  IFS=$as_save_IFS
5532
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5533
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5534
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5536
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5537
    break 2
5538
  fi
5539
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5540
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5541
IFS=$as_save_IFS
5542
5543
fi
5544
fi
5545
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5546
if test -n "$ac_ct_DUMPBIN"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5547
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5548
$as_echo "$ac_ct_DUMPBIN" >&6; }
5549
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5551
$as_echo "no" >&6; }
5552
fi
5553
5554
5555
  test -n "$ac_ct_DUMPBIN" && break
5556
done
5557
5558
  if test "x$ac_ct_DUMPBIN" = x; then
5559
    DUMPBIN=":"
5560
  else
5561
    case $cross_compiling:$ac_tool_warned in
5562
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5563
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5564
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565
ac_tool_warned=yes ;;
5566
esac
5567
    DUMPBIN=$ac_ct_DUMPBIN
5568
  fi
5569
fi
5570
5571
5572
  if test "$DUMPBIN" != ":"; then
5573
    NM="$DUMPBIN"
5574
  fi
5575
fi
5576
test -z "$NM" && NM=nm
5577
5578
5579
5580
5581
5582
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5584
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5585
if test "${lt_cv_nm_interface+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5586
  $as_echo_n "(cached) " >&6
5587
else
5588
  lt_cv_nm_interface="BSD nm"
5589
  echo "int some_variable = 0;" > conftest.$ac_ext
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5590
  (eval echo "\"\$as_me:5590: $ac_compile\"" >&5)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5591
  (eval "$ac_compile" 2>conftest.err)
5592
  cat conftest.err >&5
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5593
  (eval echo "\"\$as_me:5593: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5594
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5595
  cat conftest.err >&5
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5596
  (eval echo "\"\$as_me:5596: output\"" >&5)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5597
  cat conftest.out >&5
5598
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5599
    lt_cv_nm_interface="MS dumpbin"
5600
  fi
5601
  rm -f conftest*
5602
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5604
$as_echo "$lt_cv_nm_interface" >&6; }
5605
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5607
$as_echo_n "checking whether ln -s works... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
5608
LN_S=$as_ln_s
5609
if test "$LN_S" = "ln -s"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5610
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5611
$as_echo "yes" >&6; }
5612
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5613
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5614
$as_echo "no, using $LN_S" >&6; }
5615
fi
5616
5617
# find the maximum length of command line arguments
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5619
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5620
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5621
  $as_echo_n "(cached) " >&6
5622
else
5623
    i=0
5624
  teststring="ABCD"
5625
5626
  case $build_os in
5627
  msdosdjgpp*)
5628
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5629
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5630
    # during glob expansion).  Even if it were fixed, the result of this
5631
    # check would be larger than it should be.
5632
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5633
    ;;
5634
5635
  gnu*)
5636
    # Under GNU Hurd, this test is not required because there is
5637
    # no limit to the length of command line arguments.
5638
    # Libtool will interpret -1 as no limit whatsoever
5639
    lt_cv_sys_max_cmd_len=-1;
5640
    ;;
5641
5642
  cygwin* | mingw* | cegcc*)
5643
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5644
    # about 5 minutes as the teststring grows exponentially.
5645
    # Worse, since 9x/ME are not pre-emptively multitasking,
5646
    # you end up with a "frozen" computer, even though with patience
5647
    # the test eventually succeeds (with a max line length of 256k).
5648
    # Instead, let's just punt: use the minimum linelength reported by
5649
    # all of the supported platforms: 8192 (on NT/2K/XP).
5650
    lt_cv_sys_max_cmd_len=8192;
5651
    ;;
5652
5653
  amigaos*)
5654
    # On AmigaOS with pdksh, this test takes hours, literally.
5655
    # So we just punt and use a minimum line length of 8192.
5656
    lt_cv_sys_max_cmd_len=8192;
5657
    ;;
5658
5659
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5660
    # This has been around since 386BSD, at least.  Likely further.
5661
    if test -x /sbin/sysctl; then
5662
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5663
    elif test -x /usr/sbin/sysctl; then
5664
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5665
    else
5666
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5667
    fi
5668
    # And add a safety zone
5669
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5670
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5671
    ;;
5672
5673
  interix*)
5674
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5675
    lt_cv_sys_max_cmd_len=196608
5676
    ;;
5677
5678
  osf*)
5679
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5680
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5681
    # nice to cause kernel panics so lets avoid the loop below.
5682
    # First set a reasonable default.
5683
    lt_cv_sys_max_cmd_len=16384
5684
    #
5685
    if test -x /sbin/sysconfig; then
5686
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5687
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5688
      esac
5689
    fi
5690
    ;;
5691
  sco3.2v5*)
5692
    lt_cv_sys_max_cmd_len=102400
5693
    ;;
5694
  sysv5* | sco5v6* | sysv4.2uw2*)
5695
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5696
    if test -n "$kargmax"; then
5697
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5698
    else
5699
      lt_cv_sys_max_cmd_len=32768
5700
    fi
5701
    ;;
5702
  *)
5703
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5704
    if test -n "$lt_cv_sys_max_cmd_len"; then
5705
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5706
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5707
    else
5708
      # Make teststring a little bigger before we do anything with it.
5709
      # a 1K string should be a reasonable start.
5710
      for i in 1 2 3 4 5 6 7 8 ; do
5711
        teststring=$teststring$teststring
5712
      done
5713
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5714
      # If test is not a shell built-in, we'll probably end up computing a
5715
      # maximum length that is only half of the actual maximum length, but
5716
      # we can't tell.
5717
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5718
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5719
	      test $i != 17 # 1/2 MB should be enough
5720
      do
5721
        i=`expr $i + 1`
5722
        teststring=$teststring$teststring
5723
      done
5724
      # Only check the string length outside the loop.
5725
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5726
      teststring=
5727
      # Add a significant safety factor because C++ compilers can tack on
5728
      # massive amounts of additional arguments before passing them to the
5729
      # linker.  It appears as though 1/2 is a usable value.
5730
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5731
    fi
5732
    ;;
5733
  esac
5734
5735
fi
5736
5737
if test -n $lt_cv_sys_max_cmd_len ; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5738
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5739
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5740
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5741
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5742
$as_echo "none" >&6; }
5743
fi
5744
max_cmd_len=$lt_cv_sys_max_cmd_len
5745
5746
5747
5748
5749
5750
5751
: ${CP="cp -f"}
5752
: ${MV="mv -f"}
5753
: ${RM="rm -f"}
5754
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5756
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5757
# Try some XSI features
5758
xsi_shell=no
5759
( _lt_dummy="a/b/c"
5760
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5761
      = c,a/b,, \
5762
    && eval 'test $(( 1 + 1 )) -eq 2 \
5763
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5764
  && xsi_shell=yes
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5766
$as_echo "$xsi_shell" >&6; }
5767
5768
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5770
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5771
lt_shell_append=no
5772
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5773
    >/dev/null 2>&1 \
5774
  && lt_shell_append=yes
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5776
$as_echo "$lt_shell_append" >&6; }
5777
5778
5779
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5780
  lt_unset=unset
5781
else
5782
  lt_unset=false
5783
fi
5784
5785
5786
5787
5788
5789
# test EBCDIC or ASCII
5790
case `echo X|tr X '\101'` in
5791
 A) # ASCII based system
5792
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5793
  lt_SP2NL='tr \040 \012'
5794
  lt_NL2SP='tr \015\012 \040\040'
5795
  ;;
5796
 *) # EBCDIC based system
5797
  lt_SP2NL='tr \100 \n'
5798
  lt_NL2SP='tr \r\n \100\100'
5799
  ;;
5800
esac
5801
5802
5803
5804
5805
5806
5807
5808
5809
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5811
$as_echo_n "checking for $LD option to reload object files... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5812
if test "${lt_cv_ld_reload_flag+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5813
  $as_echo_n "(cached) " >&6
5814
else
5815
  lt_cv_ld_reload_flag='-r'
5816
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5818
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5819
reload_flag=$lt_cv_ld_reload_flag
5820
case $reload_flag in
5821
"" | " "*) ;;
5822
*) reload_flag=" $reload_flag" ;;
5823
esac
5824
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5825
case $host_os in
5826
  darwin*)
5827
    if test "$GCC" = yes; then
5828
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5829
    else
5830
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5831
    fi
5832
    ;;
5833
esac
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
if test -n "$ac_tool_prefix"; then
5844
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5845
set dummy ${ac_tool_prefix}objdump; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5847
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5848
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5849
  $as_echo_n "(cached) " >&6
5850
else
5851
  if test -n "$OBJDUMP"; then
5852
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5853
else
5854
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855
for as_dir in $PATH
5856
do
5857
  IFS=$as_save_IFS
5858
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5859
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5860
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5862
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5863
    break 2
5864
  fi
5865
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5866
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5867
IFS=$as_save_IFS
5868
5869
fi
5870
fi
5871
OBJDUMP=$ac_cv_prog_OBJDUMP
5872
if test -n "$OBJDUMP"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5873
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5874
$as_echo "$OBJDUMP" >&6; }
5875
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5876
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5877
$as_echo "no" >&6; }
5878
fi
5879
5880
5881
fi
5882
if test -z "$ac_cv_prog_OBJDUMP"; then
5883
  ac_ct_OBJDUMP=$OBJDUMP
5884
  # Extract the first word of "objdump", so it can be a program name with args.
5885
set dummy objdump; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5887
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5888
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5889
  $as_echo_n "(cached) " >&6
5890
else
5891
  if test -n "$ac_ct_OBJDUMP"; then
5892
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5893
else
5894
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895
for as_dir in $PATH
5896
do
5897
  IFS=$as_save_IFS
5898
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5899
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5900
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5902
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5903
    break 2
5904
  fi
5905
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5906
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5907
IFS=$as_save_IFS
5908
5909
fi
5910
fi
5911
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5912
if test -n "$ac_ct_OBJDUMP"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5913
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5914
$as_echo "$ac_ct_OBJDUMP" >&6; }
5915
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5917
$as_echo "no" >&6; }
5918
fi
5919
5920
  if test "x$ac_ct_OBJDUMP" = x; then
5921
    OBJDUMP="false"
5922
  else
5923
    case $cross_compiling:$ac_tool_warned in
5924
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5925
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5926
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927
ac_tool_warned=yes ;;
5928
esac
5929
    OBJDUMP=$ac_ct_OBJDUMP
5930
  fi
5931
else
5932
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5933
fi
5934
5935
test -z "$OBJDUMP" && OBJDUMP=objdump
5936
5937
5938
5939
5940
5941
5942
5943
5944
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5946
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
5947
if test "${lt_cv_deplibs_check_method+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5948
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
5949
else
5950
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5951
lt_cv_file_magic_test_file=
5952
lt_cv_deplibs_check_method='unknown'
5953
# Need to set the preceding variable on all platforms that support
5954
# interlibrary dependencies.
5955
# 'none' -- dependencies not supported.
5956
# `unknown' -- same as none, but documents that we really don't know.
5957
# 'pass_all' -- all dependencies passed with no checks.
5958
# 'test_compile' -- check by making test program.
5959
# 'file_magic [[regex]]' -- check by looking for files in library path
5960
# which responds to the $file_magic_cmd with a given extended regex.
5961
# If you have `file' or equivalent on your system and you're not sure
5962
# whether `pass_all' will *always* work, you probably want this one.
5963
5964
case $host_os in
1.1.2 by Noah Slater
Import upstream version 0.8.0
5965
aix[4-9]*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
5966
  lt_cv_deplibs_check_method=pass_all
5967
  ;;
5968
5969
beos*)
5970
  lt_cv_deplibs_check_method=pass_all
5971
  ;;
5972
5973
bsdi[45]*)
5974
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5975
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5976
  lt_cv_file_magic_test_file=/shlib/libc.so
5977
  ;;
5978
5979
cygwin*)
5980
  # func_win32_libid is a shell function defined in ltmain.sh
5981
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5982
  lt_cv_file_magic_cmd='func_win32_libid'
5983
  ;;
5984
5985
mingw* | pw32*)
5986
  # Base MSYS/MinGW do not provide the 'file' command needed by
1.1.2 by Noah Slater
Import upstream version 0.8.0
5987
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5988
  # unless we find 'file', for example because we are cross-compiling.
5989
  if ( file / ) >/dev/null 2>&1; then
5990
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5991
    lt_cv_file_magic_cmd='func_win32_libid'
5992
  else
5993
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5994
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5995
  fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
5996
  ;;
5997
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
5998
cegcc)
5999
  # use the weaker test based on 'objdump'. See mingw*.
6000
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6001
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6002
  ;;
6003
1 by Noah Slater
Import upstream version 0.7.3~svn684
6004
darwin* | rhapsody*)
6005
  lt_cv_deplibs_check_method=pass_all
6006
  ;;
6007
6008
freebsd* | dragonfly*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6009
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
6010
    case $host_cpu in
6011
    i*86 )
6012
      # Not sure whether the presence of OpenBSD here was a mistake.
6013
      # Let's accept both of them until this is cleared up.
6014
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6015
      lt_cv_file_magic_cmd=/usr/bin/file
6016
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6017
      ;;
6018
    esac
6019
  else
6020
    lt_cv_deplibs_check_method=pass_all
6021
  fi
6022
  ;;
6023
6024
gnu*)
6025
  lt_cv_deplibs_check_method=pass_all
6026
  ;;
6027
6028
hpux10.20* | hpux11*)
6029
  lt_cv_file_magic_cmd=/usr/bin/file
6030
  case $host_cpu in
6031
  ia64*)
6032
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6033
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6034
    ;;
6035
  hppa*64*)
6036
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6037
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6038
    ;;
6039
  *)
6040
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6041
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6042
    ;;
6043
  esac
6044
  ;;
6045
1.1.2 by Noah Slater
Import upstream version 0.8.0
6046
interix[3-9]*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
6047
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6048
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6049
  ;;
6050
6051
irix5* | irix6* | nonstopux*)
6052
  case $LD in
6053
  *-32|*"-32 ") libmagic=32-bit;;
6054
  *-n32|*"-n32 ") libmagic=N32;;
6055
  *-64|*"-64 ") libmagic=64-bit;;
6056
  *) libmagic=never-match;;
6057
  esac
6058
  lt_cv_deplibs_check_method=pass_all
6059
  ;;
6060
6061
# This must be Linux ELF.
6062
linux* | k*bsd*-gnu)
6063
  lt_cv_deplibs_check_method=pass_all
6064
  ;;
6065
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6066
netbsd*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6067
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
6068
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6069
  else
6070
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6071
  fi
6072
  ;;
6073
6074
newos6*)
6075
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6076
  lt_cv_file_magic_cmd=/usr/bin/file
6077
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6078
  ;;
6079
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6080
*nto* | *qnx*)
6081
  lt_cv_deplibs_check_method=pass_all
1 by Noah Slater
Import upstream version 0.7.3~svn684
6082
  ;;
6083
6084
openbsd*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6085
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
6086
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6087
  else
6088
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6089
  fi
6090
  ;;
6091
6092
osf3* | osf4* | osf5*)
6093
  lt_cv_deplibs_check_method=pass_all
6094
  ;;
6095
1.1.2 by Noah Slater
Import upstream version 0.8.0
6096
rdos*)
6097
  lt_cv_deplibs_check_method=pass_all
6098
  ;;
6099
1 by Noah Slater
Import upstream version 0.7.3~svn684
6100
solaris*)
6101
  lt_cv_deplibs_check_method=pass_all
6102
  ;;
6103
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6104
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6105
  lt_cv_deplibs_check_method=pass_all
6106
  ;;
6107
1 by Noah Slater
Import upstream version 0.7.3~svn684
6108
sysv4 | sysv4.3*)
6109
  case $host_vendor in
6110
  motorola)
6111
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6112
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6113
    ;;
6114
  ncr)
6115
    lt_cv_deplibs_check_method=pass_all
6116
    ;;
6117
  sequent)
6118
    lt_cv_file_magic_cmd='/bin/file'
6119
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6120
    ;;
6121
  sni)
6122
    lt_cv_file_magic_cmd='/bin/file'
6123
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6124
    lt_cv_file_magic_test_file=/lib/libc.so
6125
    ;;
6126
  siemens)
6127
    lt_cv_deplibs_check_method=pass_all
6128
    ;;
6129
  pc)
6130
    lt_cv_deplibs_check_method=pass_all
6131
    ;;
6132
  esac
6133
  ;;
6134
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6135
tpf*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
6136
  lt_cv_deplibs_check_method=pass_all
6137
  ;;
6138
esac
6139
6140
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6142
$as_echo "$lt_cv_deplibs_check_method" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
6143
file_magic_cmd=$lt_cv_file_magic_cmd
6144
deplibs_check_method=$lt_cv_deplibs_check_method
6145
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6146
6147
6148
6149
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6150
6151
6152
6153
6154
6155
6156
6157
6158
if test -n "$ac_tool_prefix"; then
6159
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6160
set dummy ${ac_tool_prefix}ar; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6162
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6163
if test "${ac_cv_prog_AR+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6164
  $as_echo_n "(cached) " >&6
6165
else
6166
  if test -n "$AR"; then
6167
  ac_cv_prog_AR="$AR" # Let the user override the test.
6168
else
6169
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170
for as_dir in $PATH
6171
do
6172
  IFS=$as_save_IFS
6173
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6174
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6175
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6176
    ac_cv_prog_AR="${ac_tool_prefix}ar"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6177
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6178
    break 2
6179
  fi
6180
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6181
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6182
IFS=$as_save_IFS
6183
6184
fi
6185
fi
6186
AR=$ac_cv_prog_AR
6187
if test -n "$AR"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6188
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6189
$as_echo "$AR" >&6; }
6190
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6191
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6192
$as_echo "no" >&6; }
6193
fi
6194
6195
6196
fi
6197
if test -z "$ac_cv_prog_AR"; then
6198
  ac_ct_AR=$AR
6199
  # Extract the first word of "ar", so it can be a program name with args.
6200
set dummy ar; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6202
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6203
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6204
  $as_echo_n "(cached) " >&6
6205
else
6206
  if test -n "$ac_ct_AR"; then
6207
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6208
else
6209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210
for as_dir in $PATH
6211
do
6212
  IFS=$as_save_IFS
6213
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6214
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6215
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216
    ac_cv_prog_ac_ct_AR="ar"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6217
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6218
    break 2
6219
  fi
6220
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6221
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6222
IFS=$as_save_IFS
6223
6224
fi
6225
fi
6226
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6227
if test -n "$ac_ct_AR"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6228
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6229
$as_echo "$ac_ct_AR" >&6; }
6230
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6231
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6232
$as_echo "no" >&6; }
6233
fi
6234
6235
  if test "x$ac_ct_AR" = x; then
6236
    AR="false"
6237
  else
6238
    case $cross_compiling:$ac_tool_warned in
6239
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6240
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6241
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6242
ac_tool_warned=yes ;;
6243
esac
6244
    AR=$ac_ct_AR
6245
  fi
6246
else
6247
  AR="$ac_cv_prog_AR"
6248
fi
6249
6250
test -z "$AR" && AR=ar
6251
test -z "$AR_FLAGS" && AR_FLAGS=cru
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
if test -n "$ac_tool_prefix"; then
6264
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6265
set dummy ${ac_tool_prefix}strip; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6267
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6268
if test "${ac_cv_prog_STRIP+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6269
  $as_echo_n "(cached) " >&6
6270
else
6271
  if test -n "$STRIP"; then
6272
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6273
else
6274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275
for as_dir in $PATH
6276
do
6277
  IFS=$as_save_IFS
6278
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6279
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6280
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6282
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6283
    break 2
6284
  fi
6285
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6286
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6287
IFS=$as_save_IFS
6288
6289
fi
6290
fi
6291
STRIP=$ac_cv_prog_STRIP
6292
if test -n "$STRIP"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6294
$as_echo "$STRIP" >&6; }
6295
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6297
$as_echo "no" >&6; }
6298
fi
6299
6300
6301
fi
6302
if test -z "$ac_cv_prog_STRIP"; then
6303
  ac_ct_STRIP=$STRIP
6304
  # Extract the first word of "strip", so it can be a program name with args.
6305
set dummy strip; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6307
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6308
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6309
  $as_echo_n "(cached) " >&6
6310
else
6311
  if test -n "$ac_ct_STRIP"; then
6312
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6313
else
6314
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315
for as_dir in $PATH
6316
do
6317
  IFS=$as_save_IFS
6318
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6319
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6320
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321
    ac_cv_prog_ac_ct_STRIP="strip"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6322
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6323
    break 2
6324
  fi
6325
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6326
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6327
IFS=$as_save_IFS
6328
6329
fi
6330
fi
6331
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6332
if test -n "$ac_ct_STRIP"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6333
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6334
$as_echo "$ac_ct_STRIP" >&6; }
6335
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6337
$as_echo "no" >&6; }
6338
fi
6339
6340
  if test "x$ac_ct_STRIP" = x; then
6341
    STRIP=":"
6342
  else
6343
    case $cross_compiling:$ac_tool_warned in
6344
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6345
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6346
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347
ac_tool_warned=yes ;;
6348
esac
6349
    STRIP=$ac_ct_STRIP
6350
  fi
6351
else
6352
  STRIP="$ac_cv_prog_STRIP"
6353
fi
6354
6355
test -z "$STRIP" && STRIP=:
6356
6357
6358
6359
6360
6361
6362
if test -n "$ac_tool_prefix"; then
6363
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6364
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6366
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6367
if test "${ac_cv_prog_RANLIB+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6368
  $as_echo_n "(cached) " >&6
6369
else
6370
  if test -n "$RANLIB"; then
6371
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6372
else
6373
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374
for as_dir in $PATH
6375
do
6376
  IFS=$as_save_IFS
6377
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6378
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6379
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6381
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6382
    break 2
6383
  fi
6384
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6385
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6386
IFS=$as_save_IFS
6387
6388
fi
6389
fi
6390
RANLIB=$ac_cv_prog_RANLIB
6391
if test -n "$RANLIB"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6392
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6393
$as_echo "$RANLIB" >&6; }
6394
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6395
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6396
$as_echo "no" >&6; }
6397
fi
6398
6399
6400
fi
6401
if test -z "$ac_cv_prog_RANLIB"; then
6402
  ac_ct_RANLIB=$RANLIB
6403
  # Extract the first word of "ranlib", so it can be a program name with args.
6404
set dummy ranlib; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6406
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6407
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6408
  $as_echo_n "(cached) " >&6
6409
else
6410
  if test -n "$ac_ct_RANLIB"; then
6411
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6412
else
6413
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414
for as_dir in $PATH
6415
do
6416
  IFS=$as_save_IFS
6417
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6418
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6419
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420
    ac_cv_prog_ac_ct_RANLIB="ranlib"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6421
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6422
    break 2
6423
  fi
6424
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6425
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6426
IFS=$as_save_IFS
6427
6428
fi
6429
fi
6430
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6431
if test -n "$ac_ct_RANLIB"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6432
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6433
$as_echo "$ac_ct_RANLIB" >&6; }
6434
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6435
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6436
$as_echo "no" >&6; }
6437
fi
6438
6439
  if test "x$ac_ct_RANLIB" = x; then
6440
    RANLIB=":"
6441
  else
6442
    case $cross_compiling:$ac_tool_warned in
6443
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6444
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6445
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6446
ac_tool_warned=yes ;;
6447
esac
6448
    RANLIB=$ac_ct_RANLIB
6449
  fi
6450
else
6451
  RANLIB="$ac_cv_prog_RANLIB"
6452
fi
6453
6454
test -z "$RANLIB" && RANLIB=:
6455
6456
6457
6458
6459
6460
6461
# Determine commands to create old-style static archives.
6462
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6463
old_postinstall_cmds='chmod 644 $oldlib'
6464
old_postuninstall_cmds=
6465
6466
if test -n "$RANLIB"; then
6467
  case $host_os in
6468
  openbsd*)
6469
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6470
    ;;
6471
  *)
6472
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6473
    ;;
6474
  esac
6475
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6476
fi
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
1 by Noah Slater
Import upstream version 0.7.3~svn684
6511
# If no C compiler was specified, use CC.
6512
LTCC=${LTCC-"$CC"}
6513
6514
# If no C compiler flags were specified, use CFLAGS.
6515
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6516
6517
# Allow CC to be a program name with arguments.
6518
compiler=$CC
6519
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
6520
1 by Noah Slater
Import upstream version 0.7.3~svn684
6521
# Check for command to grab the raw symbol name followed by C symbol from nm.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6523
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6524
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6525
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
6526
else
6527
6528
# These are sane defaults that work on at least a few old systems.
6529
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6530
6531
# Character class describing NM global symbol codes.
6532
symcode='[BCDEGRST]'
6533
6534
# Regexp to match symbols that can be accessed directly from C.
6535
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6536
6537
# Define system-specific variables.
6538
case $host_os in
6539
aix*)
6540
  symcode='[BCDT]'
6541
  ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6542
cygwin* | mingw* | pw32* | cegcc*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
6543
  symcode='[ABCDGISTW]'
6544
  ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6545
hpux*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
6546
  if test "$host_cpu" = ia64; then
6547
    symcode='[ABCDEGRST]'
6548
  fi
6549
  ;;
6550
irix* | nonstopux*)
6551
  symcode='[BCDEGRST]'
6552
  ;;
6553
osf*)
6554
  symcode='[BCDEGQRST]'
6555
  ;;
6556
solaris*)
6557
  symcode='[BDRT]'
6558
  ;;
6559
sco3.2v5*)
6560
  symcode='[DT]'
6561
  ;;
6562
sysv4.2uw2*)
6563
  symcode='[DT]'
6564
  ;;
6565
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6566
  symcode='[ABDT]'
6567
  ;;
6568
sysv4)
6569
  symcode='[DFNSTU]'
6570
  ;;
6571
esac
6572
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6573
# If we're using GNU nm, then use its standard symbol codes.
6574
case `$NM -V 2>&1` in
6575
*GNU* | *'with BFD'*)
6576
  symcode='[ABCDGIRSTW]' ;;
6577
esac
6578
6579
# Transform an extracted symbol line into a proper C declaration.
6580
# Some systems (esp. on ia64) link data and code symbols differently,
6581
# so use this general approach.
6582
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6583
6584
# Transform an extracted symbol line into symbol name and symbol address
6585
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6586
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6587
1 by Noah Slater
Import upstream version 0.7.3~svn684
6588
# Handle CRLF in mingw tool chain
6589
opt_cr=
6590
case $build_os in
6591
mingw*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6592
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1 by Noah Slater
Import upstream version 0.7.3~svn684
6593
  ;;
6594
esac
6595
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6596
# Try without a prefix underscore, then with it.
1 by Noah Slater
Import upstream version 0.7.3~svn684
6597
for ac_symprfx in "" "_"; do
6598
6599
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6600
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6601
6602
  # Write the raw and C identifiers.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6603
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6604
    # Fake it for dumpbin and say T for any non-static function
6605
    # and D for any global variable.
6606
    # Also find C++ and __fastcall symbols from MSVC++,
6607
    # which start with @ or ?.
6608
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6609
"     {last_section=section; section=\$ 3};"\
6610
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6611
"     \$ 0!~/External *\|/{next};"\
6612
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6613
"     {if(hide[section]) next};"\
6614
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6615
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6616
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6617
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6618
"     ' prfx=^$ac_symprfx"
6619
  else
6620
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6621
  fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
6622
6623
  # Check to see that the pipe works correctly.
6624
  pipe_works=no
6625
6626
  rm -f conftest*
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6627
  cat > conftest.$ac_ext <<_LT_EOF
1 by Noah Slater
Import upstream version 0.7.3~svn684
6628
#ifdef __cplusplus
6629
extern "C" {
6630
#endif
6631
char nm_test_var;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6632
void nm_test_func(void);
6633
void nm_test_func(void){}
1 by Noah Slater
Import upstream version 0.7.3~svn684
6634
#ifdef __cplusplus
6635
}
6636
#endif
6637
int main(){nm_test_var='a';nm_test_func();return(0);}
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6638
_LT_EOF
1 by Noah Slater
Import upstream version 0.7.3~svn684
6639
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6640
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
6641
  (eval $ac_compile) 2>&5
6642
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6643
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6644
  test $ac_status = 0; }; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
6645
    # Now try to grab the symbols.
6646
    nlist=conftest.nm
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6647
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
6648
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6649
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6650
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6651
  test $ac_status = 0; } && test -s "$nlist"; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
6652
      # Try sorting and uniquifying the output.
6653
      if sort "$nlist" | uniq > "$nlist"T; then
6654
	mv -f "$nlist"T "$nlist"
6655
      else
6656
	rm -f "$nlist"T
6657
      fi
6658
6659
      # Make sure that we snagged all the symbols we need.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6660
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6661
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6662
	  cat <<_LT_EOF > conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
6663
#ifdef __cplusplus
6664
extern "C" {
6665
#endif
6666
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6667
_LT_EOF
1 by Noah Slater
Import upstream version 0.7.3~svn684
6668
	  # Now generate the symbol file.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6669
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6670
6671
	  cat <<_LT_EOF >> conftest.$ac_ext
6672
6673
/* The mapping between symbol names and symbols.  */
1 by Noah Slater
Import upstream version 0.7.3~svn684
6674
const struct {
6675
  const char *name;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6676
  void       *address;
1 by Noah Slater
Import upstream version 0.7.3~svn684
6677
}
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6678
lt__PROGRAM__LTX_preloaded_symbols[] =
1 by Noah Slater
Import upstream version 0.7.3~svn684
6679
{
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6680
  { "@PROGRAM@", (void *) 0 },
6681
_LT_EOF
6682
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6683
	  cat <<\_LT_EOF >> conftest.$ac_ext
6684
  {0, (void *) 0}
1 by Noah Slater
Import upstream version 0.7.3~svn684
6685
};
6686
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6687
/* This works around a problem in FreeBSD linker */
6688
#ifdef FREEBSD_WORKAROUND
6689
static const void *lt_preloaded_setup() {
6690
  return lt__PROGRAM__LTX_preloaded_symbols;
6691
}
6692
#endif
6693
1 by Noah Slater
Import upstream version 0.7.3~svn684
6694
#ifdef __cplusplus
6695
}
6696
#endif
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6697
_LT_EOF
1 by Noah Slater
Import upstream version 0.7.3~svn684
6698
	  # Now try linking the two files.
6699
	  mv conftest.$ac_objext conftstm.$ac_objext
6700
	  lt_save_LIBS="$LIBS"
6701
	  lt_save_CFLAGS="$CFLAGS"
6702
	  LIBS="conftstm.$ac_objext"
6703
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6704
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
6705
  (eval $ac_link) 2>&5
6706
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6707
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
6709
	    pipe_works=yes
6710
	  fi
6711
	  LIBS="$lt_save_LIBS"
6712
	  CFLAGS="$lt_save_CFLAGS"
6713
	else
6714
	  echo "cannot find nm_test_func in $nlist" >&5
6715
	fi
6716
      else
6717
	echo "cannot find nm_test_var in $nlist" >&5
6718
      fi
6719
    else
6720
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6721
    fi
6722
  else
6723
    echo "$progname: failed program was:" >&5
6724
    cat conftest.$ac_ext >&5
6725
  fi
1.1.2 by Noah Slater
Import upstream version 0.8.0
6726
  rm -rf conftest* conftst*
1 by Noah Slater
Import upstream version 0.7.3~svn684
6727
6728
  # Do not use the global_symbol_pipe unless it works.
6729
  if test "$pipe_works" = yes; then
6730
    break
6731
  else
6732
    lt_cv_sys_global_symbol_pipe=
6733
  fi
6734
done
6735
6736
fi
6737
6738
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6739
  lt_cv_sys_global_symbol_to_cdecl=
6740
fi
6741
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6743
$as_echo "failed" >&6; }
6744
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6745
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6746
$as_echo "ok" >&6; }
6747
fi
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
# Check whether --enable-libtool-lock was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6771
if test "${enable_libtool_lock+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6772
  enableval=$enable_libtool_lock;
6773
fi
6774
6775
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6776
6777
# Some flags need to be propagated to the compiler or linker for good
6778
# libtool support.
6779
case $host in
6780
ia64-*-hpux*)
6781
  # Find out which ABI we are using.
6782
  echo 'int i;' > conftest.$ac_ext
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6783
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6784
  (eval $ac_compile) 2>&5
6785
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6786
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787
  test $ac_status = 0; }; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6788
    case `/usr/bin/file conftest.$ac_objext` in
6789
      *ELF-32*)
6790
	HPUX_IA64_MODE="32"
6791
	;;
6792
      *ELF-64*)
6793
	HPUX_IA64_MODE="64"
6794
	;;
6795
    esac
6796
  fi
6797
  rm -rf conftest*
6798
  ;;
6799
*-*-irix6*)
6800
  # Find out which ABI we are using.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6801
  echo '#line 6801 "configure"' > conftest.$ac_ext
6802
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6803
  (eval $ac_compile) 2>&5
6804
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6805
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806
  test $ac_status = 0; }; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6807
    if test "$lt_cv_prog_gnu_ld" = yes; then
6808
      case `/usr/bin/file conftest.$ac_objext` in
6809
	*32-bit*)
6810
	  LD="${LD-ld} -melf32bsmip"
6811
	  ;;
6812
	*N32*)
6813
	  LD="${LD-ld} -melf32bmipn32"
6814
	  ;;
6815
	*64-bit*)
6816
	  LD="${LD-ld} -melf64bmip"
6817
	;;
6818
      esac
6819
    else
6820
      case `/usr/bin/file conftest.$ac_objext` in
6821
	*32-bit*)
6822
	  LD="${LD-ld} -32"
6823
	  ;;
6824
	*N32*)
6825
	  LD="${LD-ld} -n32"
6826
	  ;;
6827
	*64-bit*)
6828
	  LD="${LD-ld} -64"
6829
	  ;;
6830
      esac
6831
    fi
6832
  fi
6833
  rm -rf conftest*
6834
  ;;
6835
6836
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6837
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6838
  # Find out which ABI we are using.
6839
  echo 'int i;' > conftest.$ac_ext
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6840
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6841
  (eval $ac_compile) 2>&5
6842
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6843
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844
  test $ac_status = 0; }; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6845
    case `/usr/bin/file conftest.o` in
6846
      *32-bit*)
6847
	case $host in
6848
	  x86_64-*kfreebsd*-gnu)
6849
	    LD="${LD-ld} -m elf_i386_fbsd"
6850
	    ;;
6851
	  x86_64-*linux*)
6852
	    LD="${LD-ld} -m elf_i386"
6853
	    ;;
6854
	  ppc64-*linux*|powerpc64-*linux*)
6855
	    LD="${LD-ld} -m elf32ppclinux"
6856
	    ;;
6857
	  s390x-*linux*)
6858
	    LD="${LD-ld} -m elf_s390"
6859
	    ;;
6860
	  sparc64-*linux*)
6861
	    LD="${LD-ld} -m elf32_sparc"
6862
	    ;;
6863
	esac
6864
	;;
6865
      *64-bit*)
6866
	case $host in
6867
	  x86_64-*kfreebsd*-gnu)
6868
	    LD="${LD-ld} -m elf_x86_64_fbsd"
6869
	    ;;
6870
	  x86_64-*linux*)
6871
	    LD="${LD-ld} -m elf_x86_64"
6872
	    ;;
6873
	  ppc*-*linux*|powerpc*-*linux*)
6874
	    LD="${LD-ld} -m elf64ppc"
6875
	    ;;
6876
	  s390*-*linux*|s390*-*tpf*)
6877
	    LD="${LD-ld} -m elf64_s390"
6878
	    ;;
6879
	  sparc*-*linux*)
6880
	    LD="${LD-ld} -m elf64_sparc"
6881
	    ;;
6882
	esac
6883
	;;
6884
    esac
6885
  fi
6886
  rm -rf conftest*
6887
  ;;
6888
6889
*-*-sco3.2v5*)
6890
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6891
  SAVE_CFLAGS="$CFLAGS"
6892
  CFLAGS="$CFLAGS -belf"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6893
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6894
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6895
if test "${lt_cv_cc_needs_belf+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6896
  $as_echo_n "(cached) " >&6
6897
else
6898
  ac_ext=c
6899
ac_cpp='$CPP $CPPFLAGS'
6900
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6903
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6904
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6905
/* end confdefs.h.  */
6906
6907
int
6908
main ()
6909
{
6910
6911
  ;
6912
  return 0;
6913
}
6914
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6915
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6916
  lt_cv_cc_needs_belf=yes
6917
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6918
  lt_cv_cc_needs_belf=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6919
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6920
rm -f core conftest.err conftest.$ac_objext \
6921
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6922
     ac_ext=c
6923
ac_cpp='$CPP $CPPFLAGS'
6924
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927
6928
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6930
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6931
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6932
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6933
    CFLAGS="$SAVE_CFLAGS"
6934
  fi
6935
  ;;
6936
sparc*-*solaris*)
6937
  # Find out which ABI we are using.
6938
  echo 'int i;' > conftest.$ac_ext
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6939
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6940
  (eval $ac_compile) 2>&5
6941
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6942
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6943
  test $ac_status = 0; }; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6944
    case `/usr/bin/file conftest.o` in
6945
    *64-bit*)
6946
      case $lt_cv_prog_gnu_ld in
6947
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6948
      *)
6949
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6950
	  LD="${LD-ld} -64"
6951
	fi
6952
	;;
6953
      esac
6954
      ;;
6955
    esac
6956
  fi
6957
  rm -rf conftest*
6958
  ;;
6959
esac
6960
6961
need_locks="$enable_libtool_lock"
1 by Noah Slater
Import upstream version 0.7.3~svn684
6962
1.1.2 by Noah Slater
Import upstream version 0.8.0
6963
6964
  case $host_os in
6965
    rhapsody* | darwin*)
6966
    if test -n "$ac_tool_prefix"; then
6967
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6968
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6970
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6971
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6972
  $as_echo_n "(cached) " >&6
1.1.2 by Noah Slater
Import upstream version 0.8.0
6973
else
6974
  if test -n "$DSYMUTIL"; then
6975
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6976
else
6977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978
for as_dir in $PATH
6979
do
6980
  IFS=$as_save_IFS
6981
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6982
    for ac_exec_ext in '' $ac_executable_extensions; do
1.1.2 by Noah Slater
Import upstream version 0.8.0
6983
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6985
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.2 by Noah Slater
Import upstream version 0.8.0
6986
    break 2
6987
  fi
6988
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6989
  done
1.1.2 by Noah Slater
Import upstream version 0.8.0
6990
IFS=$as_save_IFS
6991
6992
fi
6993
fi
6994
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6995
if test -n "$DSYMUTIL"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6996
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
6997
$as_echo "$DSYMUTIL" >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
6998
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
6999
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7000
$as_echo "no" >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
7001
fi
7002
7003
7004
fi
7005
if test -z "$ac_cv_prog_DSYMUTIL"; then
7006
  ac_ct_DSYMUTIL=$DSYMUTIL
7007
  # Extract the first word of "dsymutil", so it can be a program name with args.
7008
set dummy dsymutil; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7010
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7011
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7012
  $as_echo_n "(cached) " >&6
1.1.2 by Noah Slater
Import upstream version 0.8.0
7013
else
7014
  if test -n "$ac_ct_DSYMUTIL"; then
7015
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7016
else
7017
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018
for as_dir in $PATH
7019
do
7020
  IFS=$as_save_IFS
7021
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7022
    for ac_exec_ext in '' $ac_executable_extensions; do
1.1.2 by Noah Slater
Import upstream version 0.8.0
7023
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7025
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.2 by Noah Slater
Import upstream version 0.8.0
7026
    break 2
7027
  fi
7028
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7029
  done
1.1.2 by Noah Slater
Import upstream version 0.8.0
7030
IFS=$as_save_IFS
7031
7032
fi
7033
fi
7034
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7035
if test -n "$ac_ct_DSYMUTIL"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7036
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7037
$as_echo "$ac_ct_DSYMUTIL" >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
7038
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7039
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7040
$as_echo "no" >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
7041
fi
7042
7043
  if test "x$ac_ct_DSYMUTIL" = x; then
7044
    DSYMUTIL=":"
7045
  else
7046
    case $cross_compiling:$ac_tool_warned in
7047
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7048
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7049
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1.2 by Noah Slater
Import upstream version 0.8.0
7050
ac_tool_warned=yes ;;
7051
esac
7052
    DSYMUTIL=$ac_ct_DSYMUTIL
7053
  fi
7054
else
7055
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7056
fi
7057
7058
    if test -n "$ac_tool_prefix"; then
7059
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7060
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7062
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7063
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7064
  $as_echo_n "(cached) " >&6
1.1.2 by Noah Slater
Import upstream version 0.8.0
7065
else
7066
  if test -n "$NMEDIT"; then
7067
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7068
else
7069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070
for as_dir in $PATH
7071
do
7072
  IFS=$as_save_IFS
7073
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7074
    for ac_exec_ext in '' $ac_executable_extensions; do
1.1.2 by Noah Slater
Import upstream version 0.8.0
7075
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7077
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.2 by Noah Slater
Import upstream version 0.8.0
7078
    break 2
7079
  fi
7080
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7081
  done
1.1.2 by Noah Slater
Import upstream version 0.8.0
7082
IFS=$as_save_IFS
7083
7084
fi
7085
fi
7086
NMEDIT=$ac_cv_prog_NMEDIT
7087
if test -n "$NMEDIT"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7089
$as_echo "$NMEDIT" >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
7090
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7092
$as_echo "no" >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
7093
fi
7094
7095
7096
fi
7097
if test -z "$ac_cv_prog_NMEDIT"; then
7098
  ac_ct_NMEDIT=$NMEDIT
7099
  # Extract the first word of "nmedit", so it can be a program name with args.
7100
set dummy nmedit; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7102
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7103
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7104
  $as_echo_n "(cached) " >&6
1.1.2 by Noah Slater
Import upstream version 0.8.0
7105
else
7106
  if test -n "$ac_ct_NMEDIT"; then
7107
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7108
else
7109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110
for as_dir in $PATH
7111
do
7112
  IFS=$as_save_IFS
7113
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7114
    for ac_exec_ext in '' $ac_executable_extensions; do
1.1.2 by Noah Slater
Import upstream version 0.8.0
7115
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7117
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.2 by Noah Slater
Import upstream version 0.8.0
7118
    break 2
7119
  fi
7120
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7121
  done
1.1.2 by Noah Slater
Import upstream version 0.8.0
7122
IFS=$as_save_IFS
7123
7124
fi
7125
fi
7126
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7127
if test -n "$ac_ct_NMEDIT"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7129
$as_echo "$ac_ct_NMEDIT" >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
7130
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7131
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7132
$as_echo "no" >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
7133
fi
7134
7135
  if test "x$ac_ct_NMEDIT" = x; then
7136
    NMEDIT=":"
7137
  else
7138
    case $cross_compiling:$ac_tool_warned in
7139
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7140
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7141
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1.2 by Noah Slater
Import upstream version 0.8.0
7142
ac_tool_warned=yes ;;
7143
esac
7144
    NMEDIT=$ac_ct_NMEDIT
7145
  fi
7146
else
7147
  NMEDIT="$ac_cv_prog_NMEDIT"
7148
fi
7149
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7150
    if test -n "$ac_tool_prefix"; then
7151
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7152
set dummy ${ac_tool_prefix}lipo; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7154
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7155
if test "${ac_cv_prog_LIPO+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7156
  $as_echo_n "(cached) " >&6
7157
else
7158
  if test -n "$LIPO"; then
7159
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7160
else
7161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162
for as_dir in $PATH
7163
do
7164
  IFS=$as_save_IFS
7165
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7166
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7167
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7169
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7170
    break 2
7171
  fi
7172
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7173
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7174
IFS=$as_save_IFS
7175
7176
fi
7177
fi
7178
LIPO=$ac_cv_prog_LIPO
7179
if test -n "$LIPO"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7181
$as_echo "$LIPO" >&6; }
7182
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7183
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7184
$as_echo "no" >&6; }
7185
fi
7186
7187
7188
fi
7189
if test -z "$ac_cv_prog_LIPO"; then
7190
  ac_ct_LIPO=$LIPO
7191
  # Extract the first word of "lipo", so it can be a program name with args.
7192
set dummy lipo; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7194
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7195
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7196
  $as_echo_n "(cached) " >&6
7197
else
7198
  if test -n "$ac_ct_LIPO"; then
7199
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7200
else
7201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202
for as_dir in $PATH
7203
do
7204
  IFS=$as_save_IFS
7205
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7206
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7207
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208
    ac_cv_prog_ac_ct_LIPO="lipo"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7209
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7210
    break 2
7211
  fi
7212
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7213
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7214
IFS=$as_save_IFS
7215
7216
fi
7217
fi
7218
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7219
if test -n "$ac_ct_LIPO"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7221
$as_echo "$ac_ct_LIPO" >&6; }
7222
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7224
$as_echo "no" >&6; }
7225
fi
7226
7227
  if test "x$ac_ct_LIPO" = x; then
7228
    LIPO=":"
7229
  else
7230
    case $cross_compiling:$ac_tool_warned in
7231
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7232
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7233
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234
ac_tool_warned=yes ;;
7235
esac
7236
    LIPO=$ac_ct_LIPO
7237
  fi
7238
else
7239
  LIPO="$ac_cv_prog_LIPO"
7240
fi
7241
7242
    if test -n "$ac_tool_prefix"; then
7243
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7244
set dummy ${ac_tool_prefix}otool; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7246
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7247
if test "${ac_cv_prog_OTOOL+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7248
  $as_echo_n "(cached) " >&6
7249
else
7250
  if test -n "$OTOOL"; then
7251
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7252
else
7253
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254
for as_dir in $PATH
7255
do
7256
  IFS=$as_save_IFS
7257
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7258
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7259
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7261
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7262
    break 2
7263
  fi
7264
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7265
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7266
IFS=$as_save_IFS
7267
7268
fi
7269
fi
7270
OTOOL=$ac_cv_prog_OTOOL
7271
if test -n "$OTOOL"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7272
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7273
$as_echo "$OTOOL" >&6; }
7274
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7275
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7276
$as_echo "no" >&6; }
7277
fi
7278
7279
7280
fi
7281
if test -z "$ac_cv_prog_OTOOL"; then
7282
  ac_ct_OTOOL=$OTOOL
7283
  # Extract the first word of "otool", so it can be a program name with args.
7284
set dummy otool; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7286
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7287
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7288
  $as_echo_n "(cached) " >&6
7289
else
7290
  if test -n "$ac_ct_OTOOL"; then
7291
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7292
else
7293
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294
for as_dir in $PATH
7295
do
7296
  IFS=$as_save_IFS
7297
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7298
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7299
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7300
    ac_cv_prog_ac_ct_OTOOL="otool"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7301
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7302
    break 2
7303
  fi
7304
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7305
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7306
IFS=$as_save_IFS
7307
7308
fi
7309
fi
7310
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7311
if test -n "$ac_ct_OTOOL"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7312
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7313
$as_echo "$ac_ct_OTOOL" >&6; }
7314
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7315
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7316
$as_echo "no" >&6; }
7317
fi
7318
7319
  if test "x$ac_ct_OTOOL" = x; then
7320
    OTOOL=":"
7321
  else
7322
    case $cross_compiling:$ac_tool_warned in
7323
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7324
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7325
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326
ac_tool_warned=yes ;;
7327
esac
7328
    OTOOL=$ac_ct_OTOOL
7329
  fi
7330
else
7331
  OTOOL="$ac_cv_prog_OTOOL"
7332
fi
7333
7334
    if test -n "$ac_tool_prefix"; then
7335
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7336
set dummy ${ac_tool_prefix}otool64; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7338
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7339
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7340
  $as_echo_n "(cached) " >&6
7341
else
7342
  if test -n "$OTOOL64"; then
7343
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7344
else
7345
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346
for as_dir in $PATH
7347
do
7348
  IFS=$as_save_IFS
7349
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7350
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7351
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7353
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7354
    break 2
7355
  fi
7356
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7357
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7358
IFS=$as_save_IFS
7359
7360
fi
7361
fi
7362
OTOOL64=$ac_cv_prog_OTOOL64
7363
if test -n "$OTOOL64"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7365
$as_echo "$OTOOL64" >&6; }
7366
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7367
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7368
$as_echo "no" >&6; }
7369
fi
7370
7371
7372
fi
7373
if test -z "$ac_cv_prog_OTOOL64"; then
7374
  ac_ct_OTOOL64=$OTOOL64
7375
  # Extract the first word of "otool64", so it can be a program name with args.
7376
set dummy otool64; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7378
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7379
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7380
  $as_echo_n "(cached) " >&6
7381
else
7382
  if test -n "$ac_ct_OTOOL64"; then
7383
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7384
else
7385
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386
for as_dir in $PATH
7387
do
7388
  IFS=$as_save_IFS
7389
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7390
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7391
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7392
    ac_cv_prog_ac_ct_OTOOL64="otool64"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7393
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7394
    break 2
7395
  fi
7396
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7397
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7398
IFS=$as_save_IFS
7399
7400
fi
7401
fi
7402
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7403
if test -n "$ac_ct_OTOOL64"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7405
$as_echo "$ac_ct_OTOOL64" >&6; }
7406
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7407
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7408
$as_echo "no" >&6; }
7409
fi
7410
7411
  if test "x$ac_ct_OTOOL64" = x; then
7412
    OTOOL64=":"
7413
  else
7414
    case $cross_compiling:$ac_tool_warned in
7415
yes:)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7416
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7417
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7418
ac_tool_warned=yes ;;
7419
esac
7420
    OTOOL64=$ac_ct_OTOOL64
7421
  fi
7422
else
7423
  OTOOL64="$ac_cv_prog_OTOOL64"
7424
fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7452
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7453
$as_echo_n "checking for -single_module linker flag... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7454
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7455
  $as_echo_n "(cached) " >&6
1.1.2 by Noah Slater
Import upstream version 0.8.0
7456
else
7457
  lt_cv_apple_cc_single_mod=no
7458
      if test -z "${LT_MULTI_MODULE}"; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7459
	# By default we will add the -single_module flag. You can override
7460
	# by either setting the environment variable LT_MULTI_MODULE
7461
	# non-empty at configure time, or by adding -multi_module to the
7462
	# link flags.
7463
	rm -rf libconftest.dylib*
7464
	echo "int foo(void){return 1;}" > conftest.c
7465
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7466
-dynamiclib -Wl,-single_module conftest.c" >&5
7467
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7468
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7469
        _lt_result=$?
7470
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7471
	  lt_cv_apple_cc_single_mod=yes
7472
	else
7473
	  cat conftest.err >&5
7474
	fi
7475
	rm -rf libconftest.dylib*
7476
	rm -f conftest.*
1.1.2 by Noah Slater
Import upstream version 0.8.0
7477
      fi
7478
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7480
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7481
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7482
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7483
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7484
  $as_echo_n "(cached) " >&6
1.1.2 by Noah Slater
Import upstream version 0.8.0
7485
else
7486
  lt_cv_ld_exported_symbols_list=no
7487
      save_LDFLAGS=$LDFLAGS
7488
      echo "_main" > conftest.sym
7489
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7490
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.2 by Noah Slater
Import upstream version 0.8.0
7491
/* end confdefs.h.  */
7492
7493
int
7494
main ()
7495
{
7496
7497
  ;
7498
  return 0;
7499
}
7500
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7501
if ac_fn_c_try_link "$LINENO"; then :
1.1.2 by Noah Slater
Import upstream version 0.8.0
7502
  lt_cv_ld_exported_symbols_list=yes
7503
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7504
  lt_cv_ld_exported_symbols_list=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7505
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7506
rm -f core conftest.err conftest.$ac_objext \
7507
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7508
	LDFLAGS="$save_LDFLAGS"
7509
7510
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7512
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
7513
    case $host_os in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7514
    rhapsody* | darwin1.[012])
1.1.2 by Noah Slater
Import upstream version 0.8.0
7515
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7516
    darwin1.*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7517
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7518
    darwin*) # darwin 5.x on
1.1.2 by Noah Slater
Import upstream version 0.8.0
7519
      # if running on 10.5 or later, the deployment target defaults
7520
      # to the OS version, if on x86, and 10.4, the deployment
7521
      # target defaults to 10.4. Don't you love it?
7522
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7523
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7524
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7525
	10.[012]*)
7526
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7527
	10.*)
7528
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1.1.2 by Noah Slater
Import upstream version 0.8.0
7529
      esac
7530
    ;;
7531
  esac
7532
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7533
      _lt_dar_single_mod='$single_module'
7534
    fi
7535
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7536
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7537
    else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7538
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1.2 by Noah Slater
Import upstream version 0.8.0
7539
    fi
7540
    if test "$DSYMUTIL" != ":"; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7541
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1.1.2 by Noah Slater
Import upstream version 0.8.0
7542
    else
7543
      _lt_dsymutil=
7544
    fi
7545
    ;;
7546
  esac
7547
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7548
for ac_header in dlfcn.h
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7549
do :
7550
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7551
"
7552
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7553
  cat >>confdefs.h <<_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7554
#define HAVE_DLFCN_H 1
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7555
_ACEOF
7556
1 by Noah Slater
Import upstream version 0.7.3~svn684
7557
fi
7558
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7559
done
7560
7561
7562
7563
# Set options
7564
7565
7566
7567
        enable_dlopen=no
7568
7569
7570
  enable_win32_dll=no
7571
7572
7573
1 by Noah Slater
Import upstream version 0.7.3~svn684
7574
7575
7576
# Check whether --with-pic was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7577
if test "${with_pic+set}" = set; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
7578
  withval=$with_pic; pic_mode="$withval"
7579
else
7580
  pic_mode=default
7581
fi
7582
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7583
1 by Noah Slater
Import upstream version 0.7.3~svn684
7584
test -z "$pic_mode" && pic_mode=default
7585
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7586
7587
7588
7589
7590
7591
7592
  # Check whether --enable-fast-install was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7593
if test "${enable_fast_install+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7594
  enableval=$enable_fast_install; p=${PACKAGE-default}
7595
    case $enableval in
7596
    yes) enable_fast_install=yes ;;
7597
    no) enable_fast_install=no ;;
7598
    *)
7599
      enable_fast_install=no
7600
      # Look at the argument we got.  We use all the common list separators.
7601
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7602
      for pkg in $enableval; do
7603
	IFS="$lt_save_ifs"
7604
	if test "X$pkg" = "X$p"; then
7605
	  enable_fast_install=yes
7606
	fi
7607
      done
7608
      IFS="$lt_save_ifs"
7609
      ;;
7610
    esac
7611
else
7612
  enable_fast_install=yes
7613
fi
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
# This can be used to rebuild libtool when needed
7626
LIBTOOL_DEPS="$ltmain"
7627
7628
# Always use our own libtool.
7629
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
test -z "$LN_S" && LN_S="ln -s"
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
if test -n "${ZSH_VERSION+set}" ; then
7671
   setopt NO_GLOB_SUBST
7672
fi
7673
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7675
$as_echo_n "checking for objdir... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7676
if test "${lt_cv_objdir+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7677
  $as_echo_n "(cached) " >&6
7678
else
7679
  rm -f .libs 2>/dev/null
7680
mkdir .libs 2>/dev/null
7681
if test -d .libs; then
7682
  lt_cv_objdir=.libs
7683
else
7684
  # MS-DOS does not allow filenames that begin with a dot.
7685
  lt_cv_objdir=_libs
7686
fi
7687
rmdir .libs 2>/dev/null
7688
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7690
$as_echo "$lt_cv_objdir" >&6; }
7691
objdir=$lt_cv_objdir
7692
7693
7694
7695
7696
7697
cat >>confdefs.h <<_ACEOF
7698
#define LT_OBJDIR "$lt_cv_objdir/"
7699
_ACEOF
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
case $host_os in
7718
aix3*)
7719
  # AIX sometimes has problems with the GCC collect2 program.  For some
7720
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7721
  # vanish in a puff of smoke.
7722
  if test "X${COLLECT_NAMES+set}" != Xset; then
7723
    COLLECT_NAMES=
7724
    export COLLECT_NAMES
7725
  fi
7726
  ;;
7727
esac
7728
7729
# Sed substitution that helps us do robust quoting.  It backslashifies
7730
# metacharacters that are still active within double-quoted strings.
7731
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7732
7733
# Same as above, but do not quote variable references.
7734
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7735
7736
# Sed substitution to delay expansion of an escaped shell variable in a
7737
# double_quote_subst'ed string.
7738
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7739
7740
# Sed substitution to delay expansion of an escaped single quote.
7741
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7742
7743
# Sed substitution to avoid accidental globbing in evaled expressions
7744
no_glob_subst='s/\*/\\\*/g'
7745
7746
# Global variables:
7747
ofile=libtool
7748
can_build_shared=yes
7749
7750
# All known linkers require a `.a' archive for static linking (except MSVC,
7751
# which needs '.lib').
7752
libext=a
7753
7754
with_gnu_ld="$lt_cv_prog_gnu_ld"
7755
7756
old_CC="$CC"
7757
old_CFLAGS="$CFLAGS"
7758
7759
# Set sane defaults for various variables
7760
test -z "$CC" && CC=cc
7761
test -z "$LTCC" && LTCC=$CC
7762
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7763
test -z "$LD" && LD=ld
7764
test -z "$ac_objext" && ac_objext=o
7765
7766
for cc_temp in $compiler""; do
7767
  case $cc_temp in
7768
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7769
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7770
    \-*) ;;
7771
    *) break;;
7772
  esac
7773
done
7774
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7775
7776
7777
# Only perform the check for file, if the check method requires it
7778
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7779
case $deplibs_check_method in
7780
file_magic*)
7781
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7782
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7783
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7784
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7785
  $as_echo_n "(cached) " >&6
7786
else
7787
  case $MAGIC_CMD in
7788
[\\/*] |  ?:[\\/]*)
7789
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7790
  ;;
7791
*)
7792
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7793
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7794
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7795
  for ac_dir in $ac_dummy; do
7796
    IFS="$lt_save_ifs"
7797
    test -z "$ac_dir" && ac_dir=.
7798
    if test -f $ac_dir/${ac_tool_prefix}file; then
7799
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7800
      if test -n "$file_magic_test_file"; then
7801
	case $deplibs_check_method in
7802
	"file_magic "*)
7803
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7804
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7805
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7806
	    $EGREP "$file_magic_regex" > /dev/null; then
7807
	    :
7808
	  else
7809
	    cat <<_LT_EOF 1>&2
7810
7811
*** Warning: the command libtool uses to detect shared libraries,
7812
*** $file_magic_cmd, produces output that libtool cannot recognize.
7813
*** The result is that libtool may fail to recognize shared libraries
7814
*** as such.  This will affect the creation of libtool libraries that
7815
*** depend on shared libraries, but programs linked with such libtool
7816
*** libraries will work regardless of this problem.  Nevertheless, you
7817
*** may want to report the problem to your system manager and/or to
7818
*** bug-libtool@gnu.org
7819
7820
_LT_EOF
7821
	  fi ;;
7822
	esac
7823
      fi
7824
      break
7825
    fi
7826
  done
7827
  IFS="$lt_save_ifs"
7828
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7829
  ;;
7830
esac
7831
fi
7832
7833
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7834
if test -n "$MAGIC_CMD"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7835
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7836
$as_echo "$MAGIC_CMD" >&6; }
7837
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7838
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7839
$as_echo "no" >&6; }
7840
fi
7841
7842
7843
7844
7845
7846
if test -z "$lt_cv_path_MAGIC_CMD"; then
7847
  if test -n "$ac_tool_prefix"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7848
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7849
$as_echo_n "checking for file... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7850
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7851
  $as_echo_n "(cached) " >&6
7852
else
7853
  case $MAGIC_CMD in
7854
[\\/*] |  ?:[\\/]*)
7855
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7856
  ;;
7857
*)
7858
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7859
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7860
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7861
  for ac_dir in $ac_dummy; do
7862
    IFS="$lt_save_ifs"
7863
    test -z "$ac_dir" && ac_dir=.
7864
    if test -f $ac_dir/file; then
7865
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7866
      if test -n "$file_magic_test_file"; then
7867
	case $deplibs_check_method in
7868
	"file_magic "*)
7869
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7870
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7871
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7872
	    $EGREP "$file_magic_regex" > /dev/null; then
7873
	    :
7874
	  else
7875
	    cat <<_LT_EOF 1>&2
7876
7877
*** Warning: the command libtool uses to detect shared libraries,
7878
*** $file_magic_cmd, produces output that libtool cannot recognize.
7879
*** The result is that libtool may fail to recognize shared libraries
7880
*** as such.  This will affect the creation of libtool libraries that
7881
*** depend on shared libraries, but programs linked with such libtool
7882
*** libraries will work regardless of this problem.  Nevertheless, you
7883
*** may want to report the problem to your system manager and/or to
7884
*** bug-libtool@gnu.org
7885
7886
_LT_EOF
7887
	  fi ;;
7888
	esac
7889
      fi
7890
      break
7891
    fi
7892
  done
7893
  IFS="$lt_save_ifs"
7894
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7895
  ;;
7896
esac
7897
fi
7898
7899
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900
if test -n "$MAGIC_CMD"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7901
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7902
$as_echo "$MAGIC_CMD" >&6; }
7903
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7904
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7905
$as_echo "no" >&6; }
7906
fi
7907
7908
7909
  else
7910
    MAGIC_CMD=:
7911
  fi
7912
fi
7913
7914
  fi
7915
  ;;
7916
esac
7917
1 by Noah Slater
Import upstream version 0.7.3~svn684
7918
# Use C for the default configuration in the libtool script
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7919
1 by Noah Slater
Import upstream version 0.7.3~svn684
7920
lt_save_CC="$CC"
7921
ac_ext=c
7922
ac_cpp='$CPP $CPPFLAGS'
7923
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927
7928
# Source file extension for C test sources.
7929
ac_ext=c
7930
7931
# Object file extension for compiled C test sources.
7932
objext=o
7933
objext=$objext
7934
7935
# Code to be used in simple compile tests
1.1.2 by Noah Slater
Import upstream version 0.8.0
7936
lt_simple_compile_test_code="int some_variable = 0;"
1 by Noah Slater
Import upstream version 0.7.3~svn684
7937
7938
# Code to be used in simple link tests
1.1.2 by Noah Slater
Import upstream version 0.8.0
7939
lt_simple_link_test_code='int main(){return(0);}'
1 by Noah Slater
Import upstream version 0.7.3~svn684
7940
7941
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7942
7943
7944
7945
7946
1 by Noah Slater
Import upstream version 0.7.3~svn684
7947
# If no C compiler was specified, use CC.
7948
LTCC=${LTCC-"$CC"}
7949
7950
# If no C compiler flags were specified, use CFLAGS.
7951
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7952
7953
# Allow CC to be a program name with arguments.
7954
compiler=$CC
7955
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7956
# Save the default compiler, since it gets overwritten when the other
7957
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7958
compiler_DEFAULT=$CC
1 by Noah Slater
Import upstream version 0.7.3~svn684
7959
7960
# save warnings/boilerplate of simple test code
7961
ac_outfile=conftest.$ac_objext
1.1.2 by Noah Slater
Import upstream version 0.8.0
7962
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
7963
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7964
_lt_compiler_boilerplate=`cat conftest.err`
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7965
$RM conftest*
1 by Noah Slater
Import upstream version 0.7.3~svn684
7966
7967
ac_outfile=conftest.$ac_objext
1.1.2 by Noah Slater
Import upstream version 0.8.0
7968
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
7969
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7970
_lt_linker_boilerplate=`cat conftest.err`
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7971
$RM -r conftest*
7972
7973
7974
if test -n "$compiler"; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
7975
7976
lt_prog_compiler_no_builtin_flag=
7977
7978
if test "$GCC" = yes; then
7979
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7980
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7981
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7982
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7983
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7984
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
7985
else
7986
  lt_cv_prog_compiler_rtti_exceptions=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
7987
   ac_outfile=conftest.$ac_objext
1.1.2 by Noah Slater
Import upstream version 0.8.0
7988
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
7989
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7990
   # Insert the option either (1) after the last *FLAGS variable, or
7991
   # (2) before a word containing "conftest.", or (3) at the end.
7992
   # Note that $ac_compile itself does not contain backslashes and begins
7993
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7994
   # The option is referenced via a variable to avoid confusing sed.
7995
   lt_compile=`echo "$ac_compile" | $SED \
7996
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7997
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7998
   -e 's:$: $lt_compiler_flag:'`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
7999
   (eval echo "\"\$as_me:7999: $lt_compile\"" >&5)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8000
   (eval "$lt_compile" 2>conftest.err)
8001
   ac_status=$?
8002
   cat conftest.err >&5
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8003
   echo "$as_me:8003: \$? = $ac_status" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
8004
   if (exit $ac_status) && test -s "$ac_outfile"; then
8005
     # The compiler can only warn and ignore the option if not recognized
8006
     # So say no if there are warnings other than the usual output.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8007
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1 by Noah Slater
Import upstream version 0.7.3~svn684
8008
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8009
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8010
       lt_cv_prog_compiler_rtti_exceptions=yes
8011
     fi
8012
   fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8013
   $RM conftest*
1 by Noah Slater
Import upstream version 0.7.3~svn684
8014
8015
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8017
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
8018
8019
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8020
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8021
else
8022
    :
8023
fi
8024
8025
fi
8026
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8027
8028
8029
8030
8031
8032
  lt_prog_compiler_wl=
1 by Noah Slater
Import upstream version 0.7.3~svn684
8033
lt_prog_compiler_pic=
8034
lt_prog_compiler_static=
8035
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8037
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
8038
8039
  if test "$GCC" = yes; then
8040
    lt_prog_compiler_wl='-Wl,'
8041
    lt_prog_compiler_static='-static'
8042
8043
    case $host_os in
8044
      aix*)
8045
      # All AIX code is PIC.
8046
      if test "$host_cpu" = ia64; then
8047
	# AIX 5 now supports IA64 processor
8048
	lt_prog_compiler_static='-Bstatic'
8049
      fi
8050
      ;;
8051
8052
    amigaos*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8053
      case $host_cpu in
8054
      powerpc)
8055
            # see comment about AmigaOS4 .so support
8056
            lt_prog_compiler_pic='-fPIC'
8057
        ;;
8058
      m68k)
8059
            # FIXME: we need at least 68020 code to build shared libraries, but
8060
            # adding the `-m68020' flag to GCC prevents building anything better,
8061
            # like `-m68040'.
8062
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8063
        ;;
8064
      esac
1 by Noah Slater
Import upstream version 0.7.3~svn684
8065
      ;;
8066
1.1.2 by Noah Slater
Import upstream version 0.8.0
8067
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8068
      # PIC is the default for these OSes.
8069
      ;;
8070
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8071
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8072
      # This hack is so that the source file can tell whether it is being
8073
      # built for inclusion in a dll (and should export symbols for example).
1.1.2 by Noah Slater
Import upstream version 0.8.0
8074
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8075
      # (--disable-auto-import) libraries
1 by Noah Slater
Import upstream version 0.7.3~svn684
8076
      lt_prog_compiler_pic='-DDLL_EXPORT'
8077
      ;;
8078
8079
    darwin* | rhapsody*)
8080
      # PIC is the default on this platform
8081
      # Common symbols not allowed in MH_DYLIB files
8082
      lt_prog_compiler_pic='-fno-common'
8083
      ;;
8084
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8085
    hpux*)
8086
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8087
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8088
      # sets the default TLS model and affects inlining.
8089
      case $host_cpu in
8090
      hppa*64*)
8091
	# +Z the default
8092
	;;
8093
      *)
8094
	lt_prog_compiler_pic='-fPIC'
8095
	;;
8096
      esac
8097
      ;;
8098
1.1.2 by Noah Slater
Import upstream version 0.8.0
8099
    interix[3-9]*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8100
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8101
      # Instead, we relocate shared libraries at runtime.
8102
      ;;
8103
8104
    msdosdjgpp*)
8105
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8106
      # on systems that don't support them.
8107
      lt_prog_compiler_can_build_shared=no
8108
      enable_shared=no
8109
      ;;
8110
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8111
    *nto* | *qnx*)
8112
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8113
      # it will coredump.
8114
      lt_prog_compiler_pic='-fPIC -shared'
8115
      ;;
8116
1 by Noah Slater
Import upstream version 0.7.3~svn684
8117
    sysv4*MP*)
8118
      if test -d /usr/nec; then
8119
	lt_prog_compiler_pic=-Kconform_pic
8120
      fi
8121
      ;;
8122
8123
    *)
8124
      lt_prog_compiler_pic='-fPIC'
8125
      ;;
8126
    esac
8127
  else
8128
    # PORTME Check for flag to pass linker flags through the system compiler.
8129
    case $host_os in
8130
    aix*)
8131
      lt_prog_compiler_wl='-Wl,'
8132
      if test "$host_cpu" = ia64; then
8133
	# AIX 5 now supports IA64 processor
8134
	lt_prog_compiler_static='-Bstatic'
8135
      else
8136
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8137
      fi
8138
      ;;
8139
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8140
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8141
      # This hack is so that the source file can tell whether it is being
8142
      # built for inclusion in a dll (and should export symbols for example).
8143
      lt_prog_compiler_pic='-DDLL_EXPORT'
8144
      ;;
8145
8146
    hpux9* | hpux10* | hpux11*)
8147
      lt_prog_compiler_wl='-Wl,'
8148
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8149
      # not for PA HP-UX.
8150
      case $host_cpu in
8151
      hppa*64*|ia64*)
8152
	# +Z the default
8153
	;;
8154
      *)
8155
	lt_prog_compiler_pic='+Z'
8156
	;;
8157
      esac
8158
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8159
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8160
      ;;
8161
8162
    irix5* | irix6* | nonstopux*)
8163
      lt_prog_compiler_wl='-Wl,'
8164
      # PIC (with -KPIC) is the default.
8165
      lt_prog_compiler_static='-non_shared'
8166
      ;;
8167
8168
    linux* | k*bsd*-gnu)
8169
      case $cc_basename in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8170
      # old Intel for x86_64 which still supported -KPIC.
8171
      ecc*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8172
	lt_prog_compiler_wl='-Wl,'
8173
	lt_prog_compiler_pic='-KPIC'
8174
	lt_prog_compiler_static='-static'
8175
        ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8176
      # icc used to be incompatible with GCC.
8177
      # ICC 10 doesn't accept -KPIC any more.
8178
      icc* | ifort*)
8179
	lt_prog_compiler_wl='-Wl,'
8180
	lt_prog_compiler_pic='-fPIC'
8181
	lt_prog_compiler_static='-static'
8182
        ;;
8183
      # Lahey Fortran 8.1.
8184
      lf95*)
8185
	lt_prog_compiler_wl='-Wl,'
8186
	lt_prog_compiler_pic='--shared'
8187
	lt_prog_compiler_static='--static'
8188
	;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
8189
      pgcc* | pgf77* | pgf90* | pgf95*)
8190
        # Portland Group compilers (*not* the Pentium gcc compiler,
8191
	# which looks to be a dead project)
8192
	lt_prog_compiler_wl='-Wl,'
8193
	lt_prog_compiler_pic='-fpic'
8194
	lt_prog_compiler_static='-Bstatic'
8195
        ;;
8196
      ccc*)
8197
        lt_prog_compiler_wl='-Wl,'
8198
        # All Alpha code is PIC.
8199
        lt_prog_compiler_static='-non_shared'
8200
        ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8201
      xl*)
8202
	# IBM XL C 8.0/Fortran 10.1 on PPC
8203
	lt_prog_compiler_wl='-Wl,'
8204
	lt_prog_compiler_pic='-qpic'
8205
	lt_prog_compiler_static='-qstaticlink'
8206
	;;
1.1.2 by Noah Slater
Import upstream version 0.8.0
8207
      *)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8208
	case `$CC -V 2>&1 | sed 5q` in
1.1.2 by Noah Slater
Import upstream version 0.8.0
8209
	*Sun\ C*)
8210
	  # Sun C 5.9
8211
	  lt_prog_compiler_pic='-KPIC'
8212
	  lt_prog_compiler_static='-Bstatic'
8213
	  lt_prog_compiler_wl='-Wl,'
8214
	  ;;
8215
	*Sun\ F*)
8216
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8217
	  lt_prog_compiler_pic='-KPIC'
8218
	  lt_prog_compiler_static='-Bstatic'
8219
	  lt_prog_compiler_wl=''
8220
	  ;;
8221
	esac
8222
	;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
8223
      esac
8224
      ;;
8225
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8226
    newsos6)
8227
      lt_prog_compiler_pic='-KPIC'
8228
      lt_prog_compiler_static='-Bstatic'
8229
      ;;
8230
8231
    *nto* | *qnx*)
8232
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8233
      # it will coredump.
8234
      lt_prog_compiler_pic='-fPIC -shared'
8235
      ;;
8236
1 by Noah Slater
Import upstream version 0.7.3~svn684
8237
    osf3* | osf4* | osf5*)
8238
      lt_prog_compiler_wl='-Wl,'
8239
      # All OSF/1 code is PIC.
8240
      lt_prog_compiler_static='-non_shared'
8241
      ;;
8242
1.1.2 by Noah Slater
Import upstream version 0.8.0
8243
    rdos*)
8244
      lt_prog_compiler_static='-non_shared'
8245
      ;;
8246
1 by Noah Slater
Import upstream version 0.7.3~svn684
8247
    solaris*)
8248
      lt_prog_compiler_pic='-KPIC'
8249
      lt_prog_compiler_static='-Bstatic'
8250
      case $cc_basename in
8251
      f77* | f90* | f95*)
8252
	lt_prog_compiler_wl='-Qoption ld ';;
8253
      *)
8254
	lt_prog_compiler_wl='-Wl,';;
8255
      esac
8256
      ;;
8257
8258
    sunos4*)
8259
      lt_prog_compiler_wl='-Qoption ld '
8260
      lt_prog_compiler_pic='-PIC'
8261
      lt_prog_compiler_static='-Bstatic'
8262
      ;;
8263
8264
    sysv4 | sysv4.2uw2* | sysv4.3*)
8265
      lt_prog_compiler_wl='-Wl,'
8266
      lt_prog_compiler_pic='-KPIC'
8267
      lt_prog_compiler_static='-Bstatic'
8268
      ;;
8269
8270
    sysv4*MP*)
8271
      if test -d /usr/nec ;then
8272
	lt_prog_compiler_pic='-Kconform_pic'
8273
	lt_prog_compiler_static='-Bstatic'
8274
      fi
8275
      ;;
8276
8277
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8278
      lt_prog_compiler_wl='-Wl,'
8279
      lt_prog_compiler_pic='-KPIC'
8280
      lt_prog_compiler_static='-Bstatic'
8281
      ;;
8282
8283
    unicos*)
8284
      lt_prog_compiler_wl='-Wl,'
8285
      lt_prog_compiler_can_build_shared=no
8286
      ;;
8287
8288
    uts4*)
8289
      lt_prog_compiler_pic='-pic'
8290
      lt_prog_compiler_static='-Bstatic'
8291
      ;;
8292
8293
    *)
8294
      lt_prog_compiler_can_build_shared=no
8295
      ;;
8296
    esac
8297
  fi
8298
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8299
case $host_os in
8300
  # For platforms which do not support PIC, -DPIC is meaningless:
8301
  *djgpp*)
8302
    lt_prog_compiler_pic=
8303
    ;;
8304
  *)
8305
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8306
    ;;
8307
esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8309
$as_echo "$lt_prog_compiler_pic" >&6; }
8310
8311
8312
8313
8314
1 by Noah Slater
Import upstream version 0.7.3~svn684
8315
8316
#
8317
# Check to make sure the PIC flag actually works.
8318
#
8319
if test -n "$lt_prog_compiler_pic"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8320
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8321
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8322
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8323
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
8324
else
1.1.2 by Noah Slater
Import upstream version 0.8.0
8325
  lt_cv_prog_compiler_pic_works=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8326
   ac_outfile=conftest.$ac_objext
1.1.2 by Noah Slater
Import upstream version 0.8.0
8327
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
8328
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8329
   # Insert the option either (1) after the last *FLAGS variable, or
8330
   # (2) before a word containing "conftest.", or (3) at the end.
8331
   # Note that $ac_compile itself does not contain backslashes and begins
8332
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8333
   # The option is referenced via a variable to avoid confusing sed.
8334
   lt_compile=`echo "$ac_compile" | $SED \
8335
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8336
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8337
   -e 's:$: $lt_compiler_flag:'`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8338
   (eval echo "\"\$as_me:8338: $lt_compile\"" >&5)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8339
   (eval "$lt_compile" 2>conftest.err)
8340
   ac_status=$?
8341
   cat conftest.err >&5
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8342
   echo "$as_me:8342: \$? = $ac_status" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
8343
   if (exit $ac_status) && test -s "$ac_outfile"; then
8344
     # The compiler can only warn and ignore the option if not recognized
8345
     # So say no if there are warnings other than the usual output.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8346
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1 by Noah Slater
Import upstream version 0.7.3~svn684
8347
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8348
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1.2 by Noah Slater
Import upstream version 0.8.0
8349
       lt_cv_prog_compiler_pic_works=yes
1 by Noah Slater
Import upstream version 0.7.3~svn684
8350
     fi
8351
   fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8352
   $RM conftest*
1 by Noah Slater
Import upstream version 0.7.3~svn684
8353
8354
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8356
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
8357
1.1.2 by Noah Slater
Import upstream version 0.8.0
8358
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
8359
    case $lt_prog_compiler_pic in
8360
     "" | " "*) ;;
8361
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8362
     esac
8363
else
8364
    lt_prog_compiler_pic=
8365
     lt_prog_compiler_can_build_shared=no
8366
fi
8367
8368
fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8369
8370
8371
8372
8373
1 by Noah Slater
Import upstream version 0.7.3~svn684
8374
8375
#
8376
# Check to make sure the static flag actually works.
8377
#
8378
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8380
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8381
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8382
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
8383
else
1.1.2 by Noah Slater
Import upstream version 0.8.0
8384
  lt_cv_prog_compiler_static_works=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
8385
   save_LDFLAGS="$LDFLAGS"
8386
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1.1.2 by Noah Slater
Import upstream version 0.8.0
8387
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
8388
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8389
     # The linker can only warn and ignore the option if not recognized
8390
     # So say no if there are warnings
8391
     if test -s conftest.err; then
8392
       # Append any errors to the config.log.
8393
       cat conftest.err 1>&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8394
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1 by Noah Slater
Import upstream version 0.7.3~svn684
8395
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8396
       if diff conftest.exp conftest.er2 >/dev/null; then
1.1.2 by Noah Slater
Import upstream version 0.8.0
8397
         lt_cv_prog_compiler_static_works=yes
1 by Noah Slater
Import upstream version 0.7.3~svn684
8398
       fi
8399
     else
1.1.2 by Noah Slater
Import upstream version 0.8.0
8400
       lt_cv_prog_compiler_static_works=yes
1 by Noah Slater
Import upstream version 0.7.3~svn684
8401
     fi
8402
   fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8403
   $RM -r conftest*
1 by Noah Slater
Import upstream version 0.7.3~svn684
8404
   LDFLAGS="$save_LDFLAGS"
8405
8406
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8408
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
8409
1.1.2 by Noah Slater
Import upstream version 0.8.0
8410
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
8411
    :
8412
else
8413
    lt_prog_compiler_static=
8414
fi
8415
8416
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8417
8418
8419
8420
8421
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8422
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8423
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8424
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8425
  $as_echo_n "(cached) " >&6
8426
else
8427
  lt_cv_prog_compiler_c_o=no
8428
   $RM -r conftest 2>/dev/null
8429
   mkdir conftest
8430
   cd conftest
8431
   mkdir out
8432
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8433
8434
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8435
   # Insert the option either (1) after the last *FLAGS variable, or
8436
   # (2) before a word containing "conftest.", or (3) at the end.
8437
   # Note that $ac_compile itself does not contain backslashes and begins
8438
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8439
   lt_compile=`echo "$ac_compile" | $SED \
8440
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8441
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8442
   -e 's:$: $lt_compiler_flag:'`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8443
   (eval echo "\"\$as_me:8443: $lt_compile\"" >&5)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8444
   (eval "$lt_compile" 2>out/conftest.err)
8445
   ac_status=$?
8446
   cat out/conftest.err >&5
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8447
   echo "$as_me:8447: \$? = $ac_status" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8448
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8449
   then
8450
     # The compiler can only warn and ignore the option if not recognized
8451
     # So say no if there are warnings
8452
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8453
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8454
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8455
       lt_cv_prog_compiler_c_o=yes
8456
     fi
8457
   fi
8458
   chmod u+w . 2>&5
8459
   $RM conftest*
8460
   # SGI C++ compiler will create directory out/ii_files/ for
8461
   # template instantiation
8462
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8463
   $RM out/* && rmdir out
8464
   cd ..
8465
   $RM -r conftest
8466
   $RM conftest*
8467
8468
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8470
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8471
8472
8473
8474
8475
8476
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8477
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8478
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8479
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8480
  $as_echo_n "(cached) " >&6
8481
else
8482
  lt_cv_prog_compiler_c_o=no
8483
   $RM -r conftest 2>/dev/null
8484
   mkdir conftest
8485
   cd conftest
8486
   mkdir out
8487
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8488
8489
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8490
   # Insert the option either (1) after the last *FLAGS variable, or
8491
   # (2) before a word containing "conftest.", or (3) at the end.
8492
   # Note that $ac_compile itself does not contain backslashes and begins
8493
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8494
   lt_compile=`echo "$ac_compile" | $SED \
8495
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8496
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8497
   -e 's:$: $lt_compiler_flag:'`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8498
   (eval echo "\"\$as_me:8498: $lt_compile\"" >&5)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8499
   (eval "$lt_compile" 2>out/conftest.err)
8500
   ac_status=$?
8501
   cat out/conftest.err >&5
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8502
   echo "$as_me:8502: \$? = $ac_status" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8503
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8504
   then
8505
     # The compiler can only warn and ignore the option if not recognized
8506
     # So say no if there are warnings
8507
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8508
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8509
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8510
       lt_cv_prog_compiler_c_o=yes
8511
     fi
8512
   fi
8513
   chmod u+w . 2>&5
8514
   $RM conftest*
8515
   # SGI C++ compiler will create directory out/ii_files/ for
8516
   # template instantiation
8517
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8518
   $RM out/* && rmdir out
8519
   cd ..
8520
   $RM -r conftest
8521
   $RM conftest*
8522
8523
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8525
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8526
8527
1 by Noah Slater
Import upstream version 0.7.3~svn684
8528
8529
8530
hard_links="nottested"
8531
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8532
  # do not overwrite the value of need_locks provided by the user
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8533
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8534
$as_echo_n "checking if we can lock with hard links... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
8535
  hard_links=yes
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8536
  $RM conftest*
1 by Noah Slater
Import upstream version 0.7.3~svn684
8537
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8538
  touch conftest.a
8539
  ln conftest.a conftest.b 2>&5 || hard_links=no
8540
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8541
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8542
$as_echo "$hard_links" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
8543
  if test "$hard_links" = no; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8544
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8545
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
8546
    need_locks=warn
8547
  fi
8548
else
8549
  need_locks=no
8550
fi
8551
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8552
8553
8554
8555
8556
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8557
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8558
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
8559
8560
  runpath_var=
8561
  allow_undefined_flag=
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8562
  always_export_symbols=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
8563
  archive_cmds=
8564
  archive_expsym_cmds=
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8565
  compiler_needs_object=no
8566
  enable_shared_with_static_runtimes=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
8567
  export_dynamic_flag_spec=
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8568
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8569
  hardcode_automatic=no
8570
  hardcode_direct=no
8571
  hardcode_direct_absolute=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
8572
  hardcode_libdir_flag_spec=
8573
  hardcode_libdir_flag_spec_ld=
8574
  hardcode_libdir_separator=
8575
  hardcode_minus_L=no
8576
  hardcode_shlibpath_var=unsupported
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8577
  inherit_rpath=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
8578
  link_all_deplibs=unknown
8579
  module_cmds=
8580
  module_expsym_cmds=
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8581
  old_archive_from_new_cmds=
8582
  old_archive_from_expsyms_cmds=
8583
  thread_safe_flag_spec=
8584
  whole_archive_flag_spec=
1 by Noah Slater
Import upstream version 0.7.3~svn684
8585
  # include_expsyms should be a list of space-separated symbols to be *always*
8586
  # included in the symbol list
8587
  include_expsyms=
8588
  # exclude_expsyms can be an extended regexp of symbols to exclude
8589
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8590
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8591
  # as well as any symbol that contains `d'.
1.1.2 by Noah Slater
Import upstream version 0.8.0
8592
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8593
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8594
  # platforms (ab)use it in PIC code, but their linkers get confused if
8595
  # the symbol is explicitly referenced.  Since portable code cannot
8596
  # rely on this symbol name, it's probably fine to never include it in
8597
  # preloaded symbol tables.
1.1.2 by Noah Slater
Import upstream version 0.8.0
8598
  # Exclude shared library initialization/finalization symbols.
1 by Noah Slater
Import upstream version 0.7.3~svn684
8599
  extract_expsyms_cmds=
8600
8601
  case $host_os in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8602
  cygwin* | mingw* | pw32* | cegcc*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8603
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8604
    # When not using gcc, we currently assume that we are using
8605
    # Microsoft Visual C++.
8606
    if test "$GCC" != yes; then
8607
      with_gnu_ld=no
8608
    fi
8609
    ;;
8610
  interix*)
8611
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8612
    with_gnu_ld=yes
8613
    ;;
8614
  openbsd*)
8615
    with_gnu_ld=no
8616
    ;;
8617
  esac
8618
8619
  ld_shlibs=yes
8620
  if test "$with_gnu_ld" = yes; then
8621
    # If archive_cmds runs LD, not CC, wlarc should be empty
8622
    wlarc='${wl}'
8623
8624
    # Set some defaults for GNU ld with shared library support. These
8625
    # are reset later if shared libraries are not supported. Putting them
8626
    # here allows them to be overridden if necessary.
8627
    runpath_var=LD_RUN_PATH
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8628
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8629
    export_dynamic_flag_spec='${wl}--export-dynamic'
8630
    # ancient GNU ld didn't support --whole-archive et. al.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8631
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8632
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8633
    else
8634
      whole_archive_flag_spec=
1 by Noah Slater
Import upstream version 0.7.3~svn684
8635
    fi
8636
    supports_anon_versioning=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8637
    case `$LD -v 2>&1` in
1 by Noah Slater
Import upstream version 0.7.3~svn684
8638
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8639
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8640
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8641
      *\ 2.11.*) ;; # other 2.11 versions
8642
      *) supports_anon_versioning=yes ;;
8643
    esac
8644
8645
    # See if GNU ld supports shared libraries.
8646
    case $host_os in
1.1.2 by Noah Slater
Import upstream version 0.8.0
8647
    aix[3-9]*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8648
      # On AIX/PPC, the GNU linker is very broken
8649
      if test "$host_cpu" != ia64; then
8650
	ld_shlibs=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8651
	cat <<_LT_EOF 1>&2
1 by Noah Slater
Import upstream version 0.7.3~svn684
8652
8653
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8654
*** to be unable to reliably create shared libraries on AIX.
8655
*** Therefore, libtool is disabling shared libraries support.  If you
8656
*** really care for shared libraries, you may want to modify your PATH
8657
*** so that a non-GNU linker is found, and then restart.
8658
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8659
_LT_EOF
1 by Noah Slater
Import upstream version 0.7.3~svn684
8660
      fi
8661
      ;;
8662
8663
    amigaos*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8664
      case $host_cpu in
8665
      powerpc)
8666
            # see comment about AmigaOS4 .so support
8667
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668
            archive_expsym_cmds=''
8669
        ;;
8670
      m68k)
8671
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8672
            hardcode_libdir_flag_spec='-L$libdir'
8673
            hardcode_minus_L=yes
8674
        ;;
8675
      esac
1 by Noah Slater
Import upstream version 0.7.3~svn684
8676
      ;;
8677
8678
    beos*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8679
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
8680
	allow_undefined_flag=unsupported
8681
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8682
	# support --undefined.  This deserves some investigation.  FIXME
8683
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684
      else
8685
	ld_shlibs=no
8686
      fi
8687
      ;;
8688
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8689
    cygwin* | mingw* | pw32* | cegcc*)
8690
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
1 by Noah Slater
Import upstream version 0.7.3~svn684
8691
      # as there is no search path for DLLs.
8692
      hardcode_libdir_flag_spec='-L$libdir'
8693
      allow_undefined_flag=unsupported
8694
      always_export_symbols=no
8695
      enable_shared_with_static_runtimes=yes
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8696
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8697
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8698
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
8699
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8700
	# If the export-symbols file already is a .def file (1st line
8701
	# is EXPORTS), use it as is; otherwise, prepend...
8702
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8703
	  cp $export_symbols $output_objdir/$soname.def;
8704
	else
8705
	  echo EXPORTS > $output_objdir/$soname.def;
8706
	  cat $export_symbols >> $output_objdir/$soname.def;
8707
	fi~
8708
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8709
      else
8710
	ld_shlibs=no
8711
      fi
8712
      ;;
8713
1.1.2 by Noah Slater
Import upstream version 0.8.0
8714
    interix[3-9]*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8715
      hardcode_direct=no
8716
      hardcode_shlibpath_var=no
8717
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8718
      export_dynamic_flag_spec='${wl}-E'
8719
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8720
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8721
      # default) and relocated if they conflict, which is a slow very memory
8722
      # consuming and fragmenting process.  To avoid this, we pick a random,
8723
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8724
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8725
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8726
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8727
      ;;
8728
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8729
    gnu* | linux* | tpf* | k*bsd*-gnu)
8730
      tmp_diet=no
8731
      if test "$host_os" = linux-dietlibc; then
8732
	case $cc_basename in
8733
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8734
	esac
8735
      fi
8736
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8737
	 && test "$tmp_diet" = no
8738
      then
1 by Noah Slater
Import upstream version 0.7.3~svn684
8739
	tmp_addflag=
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8740
	tmp_sharedflag='-shared'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8741
	case $cc_basename,$host_cpu in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8742
        pgcc*)				# Portland Group C compiler
8743
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8744
	  tmp_addflag=' $pic_flag'
8745
	  ;;
8746
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8747
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8748
	  tmp_addflag=' $pic_flag -Mnomain' ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8749
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
1 by Noah Slater
Import upstream version 0.7.3~svn684
8750
	  tmp_addflag=' -i_dynamic' ;;
8751
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8752
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8753
	ifc* | ifort*)			# Intel Fortran compiler
8754
	  tmp_addflag=' -nofor_main' ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8755
	lf95*)				# Lahey Fortran 8.1
8756
	  whole_archive_flag_spec=
8757
	  tmp_sharedflag='--shared' ;;
8758
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8759
	  tmp_sharedflag='-qmkshrobj'
8760
	  tmp_addflag= ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
8761
	esac
1.1.2 by Noah Slater
Import upstream version 0.8.0
8762
	case `$CC -V 2>&1 | sed 5q` in
8763
	*Sun\ C*)			# Sun C 5.9
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8764
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8765
	  compiler_needs_object=yes
1.1.2 by Noah Slater
Import upstream version 0.8.0
8766
	  tmp_sharedflag='-G' ;;
8767
	*Sun\ F*)			# Sun Fortran 8.3
8768
	  tmp_sharedflag='-G' ;;
8769
	esac
8770
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8771
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8772
        if test "x$supports_anon_versioning" = xyes; then
8773
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8774
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8775
	    echo "local: *; };" >> $output_objdir/$libname.ver~
8776
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8777
        fi
8778
8779
	case $cc_basename in
8780
	xlf*)
8781
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8782
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8783
	  hardcode_libdir_flag_spec=
8784
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8785
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8786
	  if test "x$supports_anon_versioning" = xyes; then
8787
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8788
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8789
	      echo "local: *; };" >> $output_objdir/$libname.ver~
8790
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8791
	  fi
8792
	  ;;
8793
	esac
1 by Noah Slater
Import upstream version 0.7.3~svn684
8794
      else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8795
        ld_shlibs=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
8796
      fi
8797
      ;;
8798
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8799
    netbsd*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8800
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
8801
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8802
	wlarc=
8803
      else
8804
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8805
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8806
      fi
8807
      ;;
8808
8809
    solaris*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8810
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
8811
	ld_shlibs=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8812
	cat <<_LT_EOF 1>&2
1 by Noah Slater
Import upstream version 0.7.3~svn684
8813
8814
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8815
*** create shared libraries on Solaris systems.  Therefore, libtool
8816
*** is disabling shared libraries support.  We urge you to upgrade GNU
8817
*** binutils to release 2.9.1 or newer.  Another option is to modify
8818
*** your PATH or compiler configuration so that the native linker is
8819
*** used, and then restart.
8820
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8821
_LT_EOF
8822
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
8823
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8825
      else
8826
	ld_shlibs=no
8827
      fi
8828
      ;;
8829
8830
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8831
      case `$LD -v 2>&1` in
8832
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8833
	ld_shlibs=no
8834
	cat <<_LT_EOF 1>&2
8835
8836
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8837
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8838
*** is disabling shared libraries support.  We urge you to upgrade GNU
8839
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8840
*** your PATH or compiler configuration so that the native linker is
8841
*** used, and then restart.
8842
8843
_LT_EOF
8844
	;;
8845
	*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8846
	  # For security reasons, it is highly recommended that you always
8847
	  # use absolute paths for naming shared libraries, and exclude the
8848
	  # DT_RUNPATH tag from executables and libraries.  But doing so
8849
	  # requires that you compile everything twice, which is a pain.
8850
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8851
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8854
	  else
8855
	    ld_shlibs=no
8856
	  fi
8857
	;;
8858
      esac
8859
      ;;
8860
8861
    sunos4*)
8862
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8863
      wlarc=
8864
      hardcode_direct=yes
8865
      hardcode_shlibpath_var=no
8866
      ;;
8867
8868
    *)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8869
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
8870
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8872
      else
8873
	ld_shlibs=no
8874
      fi
8875
      ;;
8876
    esac
8877
8878
    if test "$ld_shlibs" = no; then
8879
      runpath_var=
8880
      hardcode_libdir_flag_spec=
8881
      export_dynamic_flag_spec=
8882
      whole_archive_flag_spec=
8883
    fi
8884
  else
8885
    # PORTME fill in a description of your system's linker (not GNU ld)
8886
    case $host_os in
8887
    aix3*)
8888
      allow_undefined_flag=unsupported
8889
      always_export_symbols=yes
8890
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8891
      # Note: this linker hardcodes the directories in LIBPATH if there
8892
      # are no directories specified by -L.
8893
      hardcode_minus_L=yes
8894
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8895
	# Neither direct hardcoding nor static linking is supported with a
8896
	# broken collect2.
8897
	hardcode_direct=unsupported
8898
      fi
8899
      ;;
8900
1.1.2 by Noah Slater
Import upstream version 0.8.0
8901
    aix[4-9]*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8902
      if test "$host_cpu" = ia64; then
8903
	# On IA64, the linker does run time linking by default, so we don't
8904
	# have to do anything special.
8905
	aix_use_runtimelinking=no
8906
	exp_sym_flag='-Bexport'
8907
	no_entry_flag=""
8908
      else
8909
	# If we're using GNU nm, then we don't want the "-C" option.
8910
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8911
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8912
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8913
	else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8914
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8915
	fi
8916
	aix_use_runtimelinking=no
8917
8918
	# Test if we are trying to use run time linking or normal
8919
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8920
	# need to do runtime linking.
1.1.2 by Noah Slater
Import upstream version 0.8.0
8921
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
8922
	  for ld_flag in $LDFLAGS; do
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8923
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8924
	    aix_use_runtimelinking=yes
8925
	    break
8926
	  fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
8927
	  done
8928
	  ;;
8929
	esac
8930
8931
	exp_sym_flag='-bexport'
8932
	no_entry_flag='-bnoentry'
8933
      fi
8934
8935
      # When large executables or shared objects are built, AIX ld can
8936
      # have problems creating the table of contents.  If linking a library
8937
      # or program results in "error TOC overflow" add -mminimal-toc to
8938
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8939
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8940
8941
      archive_cmds=''
8942
      hardcode_direct=yes
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8943
      hardcode_direct_absolute=yes
1 by Noah Slater
Import upstream version 0.7.3~svn684
8944
      hardcode_libdir_separator=':'
8945
      link_all_deplibs=yes
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8946
      file_list_spec='${wl}-f,'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8947
8948
      if test "$GCC" = yes; then
8949
	case $host_os in aix4.[012]|aix4.[012].*)
8950
	# We only want to do this on AIX 4.2 and lower, the check
8951
	# below for broken collect2 doesn't work under 4.3+
8952
	  collect2name=`${CC} -print-prog-name=collect2`
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8953
	  if test -f "$collect2name" &&
8954
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
1 by Noah Slater
Import upstream version 0.7.3~svn684
8955
	  then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8956
	  # We have reworked collect2
8957
	  :
1 by Noah Slater
Import upstream version 0.7.3~svn684
8958
	  else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8959
	  # We have old collect2
8960
	  hardcode_direct=unsupported
8961
	  # It fails to find uninstalled libraries when the uninstalled
8962
	  # path is not listed in the libpath.  Setting hardcode_minus_L
8963
	  # to unsupported forces relinking
8964
	  hardcode_minus_L=yes
8965
	  hardcode_libdir_flag_spec='-L$libdir'
8966
	  hardcode_libdir_separator=
1 by Noah Slater
Import upstream version 0.7.3~svn684
8967
	  fi
8968
	  ;;
8969
	esac
8970
	shared_flag='-shared'
8971
	if test "$aix_use_runtimelinking" = yes; then
8972
	  shared_flag="$shared_flag "'${wl}-G'
8973
	fi
8974
      else
8975
	# not using gcc
8976
	if test "$host_cpu" = ia64; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8977
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8978
	# chokes on -Wl,-G. The following line is correct:
1 by Noah Slater
Import upstream version 0.7.3~svn684
8979
	  shared_flag='-G'
8980
	else
8981
	  if test "$aix_use_runtimelinking" = yes; then
8982
	    shared_flag='${wl}-G'
8983
	  else
8984
	    shared_flag='${wl}-bM:SRE'
8985
	  fi
8986
	fi
8987
      fi
8988
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8989
      export_dynamic_flag_spec='${wl}-bexpall'
1 by Noah Slater
Import upstream version 0.7.3~svn684
8990
      # It seems that -bexpall does not export symbols beginning with
8991
      # underscore (_), so it is better to generate a list of symbols to export.
8992
      always_export_symbols=yes
8993
      if test "$aix_use_runtimelinking" = yes; then
8994
	# Warning - without using the other runtime loading flags (-brtl),
8995
	# -berok will link without error, but may produce a broken library.
8996
	allow_undefined_flag='-berok'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
8997
        # Determine the default libpath from the value encoded in an
8998
        # empty executable.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
8999
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
9000
/* end confdefs.h.  */
9001
9002
int
9003
main ()
9004
{
9005
9006
  ;
9007
  return 0;
9008
}
9009
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9010
if ac_fn_c_try_link "$LINENO"; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
9011
1.1.2 by Noah Slater
Import upstream version 0.8.0
9012
lt_aix_libpath_sed='
9013
    /Import File Strings/,/^$/ {
9014
	/^0/ {
9015
	    s/^0  *\(.*\)$/\1/
9016
	    p
9017
	}
9018
    }'
9019
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Noah Slater
Import upstream version 0.7.3~svn684
9020
# Check for a 64-bit object if we didn't find anything.
1.1.2 by Noah Slater
Import upstream version 0.8.0
9021
if test -z "$aix_libpath"; then
9022
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9023
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
9024
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9025
rm -f core conftest.err conftest.$ac_objext \
9026
    conftest$ac_exeext conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
9027
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9028
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9029
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9030
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9031
      else
1 by Noah Slater
Import upstream version 0.7.3~svn684
9032
	if test "$host_cpu" = ia64; then
9033
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9034
	  allow_undefined_flag="-z nodefs"
9035
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9036
	else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9037
	 # Determine the default libpath from the value encoded in an
9038
	 # empty executable.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9039
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
9040
/* end confdefs.h.  */
9041
9042
int
9043
main ()
9044
{
9045
9046
  ;
9047
  return 0;
9048
}
9049
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9050
if ac_fn_c_try_link "$LINENO"; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
9051
1.1.2 by Noah Slater
Import upstream version 0.8.0
9052
lt_aix_libpath_sed='
9053
    /Import File Strings/,/^$/ {
9054
	/^0/ {
9055
	    s/^0  *\(.*\)$/\1/
9056
	    p
9057
	}
9058
    }'
9059
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Noah Slater
Import upstream version 0.7.3~svn684
9060
# Check for a 64-bit object if we didn't find anything.
1.1.2 by Noah Slater
Import upstream version 0.8.0
9061
if test -z "$aix_libpath"; then
9062
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9063
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
9064
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9065
rm -f core conftest.err conftest.$ac_objext \
9066
    conftest$ac_exeext conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
9067
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9068
9069
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9070
	  # Warning - without using the other run time loading flags,
9071
	  # -berok will link without error, but may produce a broken library.
9072
	  no_undefined_flag=' ${wl}-bernotok'
9073
	  allow_undefined_flag=' ${wl}-berok'
9074
	  # Exported symbols can be pulled into shared objects from archives
9075
	  whole_archive_flag_spec='$convenience'
9076
	  archive_cmds_need_lc=yes
9077
	  # This is similar to how AIX traditionally builds its shared libraries.
9078
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9079
	fi
9080
      fi
9081
      ;;
9082
9083
    amigaos*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9084
      case $host_cpu in
9085
      powerpc)
9086
            # see comment about AmigaOS4 .so support
9087
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088
            archive_expsym_cmds=''
9089
        ;;
9090
      m68k)
9091
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9092
            hardcode_libdir_flag_spec='-L$libdir'
9093
            hardcode_minus_L=yes
9094
        ;;
9095
      esac
1 by Noah Slater
Import upstream version 0.7.3~svn684
9096
      ;;
9097
9098
    bsdi[45]*)
9099
      export_dynamic_flag_spec=-rdynamic
9100
      ;;
9101
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9102
    cygwin* | mingw* | pw32* | cegcc*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
9103
      # When not using gcc, we currently assume that we are using
9104
      # Microsoft Visual C++.
9105
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9106
      # no search path for DLLs.
9107
      hardcode_libdir_flag_spec=' '
9108
      allow_undefined_flag=unsupported
9109
      # Tell ltmain to make .lib files, not .a files.
9110
      libext=lib
9111
      # Tell ltmain to make .dll files, not .so files.
9112
      shrext_cmds=".dll"
9113
      # FIXME: Setting linknames here is a bad hack.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9114
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
1 by Noah Slater
Import upstream version 0.7.3~svn684
9115
      # The linker will automatically build a .lib file if we build a DLL.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9116
      old_archive_from_new_cmds='true'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9117
      # FIXME: Should let the user specify the lib program.
1.1.2 by Noah Slater
Import upstream version 0.8.0
9118
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9119
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9120
      enable_shared_with_static_runtimes=yes
9121
      ;;
9122
9123
    darwin* | rhapsody*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9124
9125
9126
  archive_cmds_need_lc=no
9127
  hardcode_direct=no
9128
  hardcode_automatic=yes
9129
  hardcode_shlibpath_var=unsupported
9130
  whole_archive_flag_spec=''
9131
  link_all_deplibs=yes
9132
  allow_undefined_flag="$_lt_dar_allow_undefined"
9133
  case $cc_basename in
9134
     ifort*) _lt_dar_can_shared=yes ;;
9135
     *) _lt_dar_can_shared=$GCC ;;
9136
  esac
9137
  if test "$_lt_dar_can_shared" = "yes"; then
9138
    output_verbose_link_cmd=echo
9139
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9140
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9141
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9142
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9143
9144
  else
9145
  ld_shlibs=no
9146
  fi
9147
1 by Noah Slater
Import upstream version 0.7.3~svn684
9148
      ;;
9149
9150
    dgux*)
9151
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152
      hardcode_libdir_flag_spec='-L$libdir'
9153
      hardcode_shlibpath_var=no
9154
      ;;
9155
9156
    freebsd1*)
9157
      ld_shlibs=no
9158
      ;;
9159
9160
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9161
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9162
    # does not break anything, and helps significantly (at the cost of a little
9163
    # extra space).
9164
    freebsd2.2*)
9165
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9166
      hardcode_libdir_flag_spec='-R$libdir'
9167
      hardcode_direct=yes
9168
      hardcode_shlibpath_var=no
9169
      ;;
9170
9171
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9172
    freebsd2*)
9173
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9174
      hardcode_direct=yes
9175
      hardcode_minus_L=yes
9176
      hardcode_shlibpath_var=no
9177
      ;;
9178
9179
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9180
    freebsd* | dragonfly*)
9181
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9182
      hardcode_libdir_flag_spec='-R$libdir'
9183
      hardcode_direct=yes
9184
      hardcode_shlibpath_var=no
9185
      ;;
9186
9187
    hpux9*)
9188
      if test "$GCC" = yes; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9189
	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9190
      else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9191
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9192
      fi
9193
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9194
      hardcode_libdir_separator=:
9195
      hardcode_direct=yes
9196
9197
      # hardcode_minus_L: Not really in the search PATH,
9198
      # but as the default location of the library.
9199
      hardcode_minus_L=yes
9200
      export_dynamic_flag_spec='${wl}-E'
9201
      ;;
9202
9203
    hpux10*)
9204
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9205
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9206
      else
9207
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9208
      fi
9209
      if test "$with_gnu_ld" = no; then
9210
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9211
	hardcode_libdir_flag_spec_ld='+b $libdir'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9212
	hardcode_libdir_separator=:
9213
	hardcode_direct=yes
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9214
	hardcode_direct_absolute=yes
1 by Noah Slater
Import upstream version 0.7.3~svn684
9215
	export_dynamic_flag_spec='${wl}-E'
9216
	# hardcode_minus_L: Not really in the search PATH,
9217
	# but as the default location of the library.
9218
	hardcode_minus_L=yes
9219
      fi
9220
      ;;
9221
9222
    hpux11*)
9223
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9224
	case $host_cpu in
9225
	hppa*64*)
9226
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9227
	  ;;
9228
	ia64*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9229
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9230
	  ;;
9231
	*)
9232
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9233
	  ;;
9234
	esac
9235
      else
9236
	case $host_cpu in
9237
	hppa*64*)
9238
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9239
	  ;;
9240
	ia64*)
9241
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9242
	  ;;
9243
	*)
9244
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9245
	  ;;
9246
	esac
9247
      fi
9248
      if test "$with_gnu_ld" = no; then
9249
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9250
	hardcode_libdir_separator=:
9251
9252
	case $host_cpu in
9253
	hppa*64*|ia64*)
9254
	  hardcode_direct=no
9255
	  hardcode_shlibpath_var=no
9256
	  ;;
9257
	*)
9258
	  hardcode_direct=yes
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9259
	  hardcode_direct_absolute=yes
1 by Noah Slater
Import upstream version 0.7.3~svn684
9260
	  export_dynamic_flag_spec='${wl}-E'
9261
9262
	  # hardcode_minus_L: Not really in the search PATH,
9263
	  # but as the default location of the library.
9264
	  hardcode_minus_L=yes
9265
	  ;;
9266
	esac
9267
      fi
9268
      ;;
9269
9270
    irix5* | irix6* | nonstopux*)
9271
      if test "$GCC" = yes; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9272
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9273
	# Try to use the -exported_symbol ld option, if it does not
9274
	# work, assume that -exports_file does not work either and
9275
	# implicitly export all symbols.
9276
        save_LDFLAGS="$LDFLAGS"
9277
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9278
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279
/* end confdefs.h.  */
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9280
int foo(void) {}
9281
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9282
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9283
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9284
9285
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9286
rm -f core conftest.err conftest.$ac_objext \
9287
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9288
        LDFLAGS="$save_LDFLAGS"
1 by Noah Slater
Import upstream version 0.7.3~svn684
9289
      else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9290
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9291
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9292
      fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9293
      archive_cmds_need_lc='no'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9294
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295
      hardcode_libdir_separator=:
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9296
      inherit_rpath=yes
1 by Noah Slater
Import upstream version 0.7.3~svn684
9297
      link_all_deplibs=yes
9298
      ;;
9299
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9300
    netbsd*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9301
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
9302
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9303
      else
9304
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9305
      fi
9306
      hardcode_libdir_flag_spec='-R$libdir'
9307
      hardcode_direct=yes
9308
      hardcode_shlibpath_var=no
9309
      ;;
9310
9311
    newsos6)
9312
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9313
      hardcode_direct=yes
9314
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315
      hardcode_libdir_separator=:
9316
      hardcode_shlibpath_var=no
9317
      ;;
9318
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9319
    *nto* | *qnx*)
9320
      ;;
9321
1 by Noah Slater
Import upstream version 0.7.3~svn684
9322
    openbsd*)
1.1.2 by Noah Slater
Import upstream version 0.8.0
9323
      if test -f /usr/libexec/ld.so; then
9324
	hardcode_direct=yes
9325
	hardcode_shlibpath_var=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9326
	hardcode_direct_absolute=yes
9327
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.1.2 by Noah Slater
Import upstream version 0.8.0
9328
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9329
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9330
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9331
	  export_dynamic_flag_spec='${wl}-E'
9332
	else
9333
	  case $host_os in
9334
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9335
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9336
	     hardcode_libdir_flag_spec='-R$libdir'
9337
	     ;;
9338
	   *)
9339
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9340
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9341
	     ;;
9342
	  esac
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9343
	fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
9344
      else
1.1.2 by Noah Slater
Import upstream version 0.8.0
9345
	ld_shlibs=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
9346
      fi
9347
      ;;
9348
9349
    os2*)
9350
      hardcode_libdir_flag_spec='-L$libdir'
9351
      hardcode_minus_L=yes
9352
      allow_undefined_flag=unsupported
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9353
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9354
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9355
      ;;
9356
9357
    osf3*)
9358
      if test "$GCC" = yes; then
9359
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9360
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9361
      else
9362
	allow_undefined_flag=' -expect_unresolved \*'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9363
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9364
      fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9365
      archive_cmds_need_lc='no'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9366
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9367
      hardcode_libdir_separator=:
9368
      ;;
9369
9370
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9371
      if test "$GCC" = yes; then
9372
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9373
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9374
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9375
      else
9376
	allow_undefined_flag=' -expect_unresolved \*'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9377
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9378
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9379
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9380
9381
	# Both c and cxx compiler support -rpath directly
9382
	hardcode_libdir_flag_spec='-rpath $libdir'
9383
      fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9384
      archive_cmds_need_lc='no'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9385
      hardcode_libdir_separator=:
9386
      ;;
9387
9388
    solaris*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9389
      no_undefined_flag=' -z defs'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9390
      if test "$GCC" = yes; then
9391
	wlarc='${wl}'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9392
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9393
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9394
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9395
      else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9396
	case `$CC -V 2>&1` in
9397
	*"Compilers 5.0"*)
9398
	  wlarc=''
9399
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9400
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9401
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9402
	  ;;
9403
	*)
9404
	  wlarc='${wl}'
9405
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9406
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9407
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9408
	  ;;
9409
	esac
1 by Noah Slater
Import upstream version 0.7.3~svn684
9410
      fi
9411
      hardcode_libdir_flag_spec='-R$libdir'
9412
      hardcode_shlibpath_var=no
9413
      case $host_os in
9414
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9415
      *)
1.1.2 by Noah Slater
Import upstream version 0.8.0
9416
	# The compiler driver will combine and reorder linker options,
9417
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9418
	# but is careful enough not to reorder.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9419
	# Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.2 by Noah Slater
Import upstream version 0.8.0
9420
	if test "$GCC" = yes; then
9421
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9422
	else
9423
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9424
	fi
9425
	;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
9426
      esac
9427
      link_all_deplibs=yes
9428
      ;;
9429
9430
    sunos4*)
9431
      if test "x$host_vendor" = xsequent; then
9432
	# Use $CC to link under sequent, because it throws in some extra .o
9433
	# files that make .init and .fini sections work.
9434
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9435
      else
9436
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9437
      fi
9438
      hardcode_libdir_flag_spec='-L$libdir'
9439
      hardcode_direct=yes
9440
      hardcode_minus_L=yes
9441
      hardcode_shlibpath_var=no
9442
      ;;
9443
9444
    sysv4)
9445
      case $host_vendor in
9446
	sni)
9447
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9448
	  hardcode_direct=yes # is this really true???
9449
	;;
9450
	siemens)
9451
	  ## LD is ld it makes a PLAMLIB
9452
	  ## CC just makes a GrossModule.
9453
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9454
	  reload_cmds='$CC -r -o $output$reload_objs'
9455
	  hardcode_direct=no
9456
        ;;
9457
	motorola)
9458
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9460
	;;
9461
      esac
9462
      runpath_var='LD_RUN_PATH'
9463
      hardcode_shlibpath_var=no
9464
      ;;
9465
9466
    sysv4.3*)
9467
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468
      hardcode_shlibpath_var=no
9469
      export_dynamic_flag_spec='-Bexport'
9470
      ;;
9471
9472
    sysv4*MP*)
9473
      if test -d /usr/nec; then
9474
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475
	hardcode_shlibpath_var=no
9476
	runpath_var=LD_RUN_PATH
9477
	hardcode_runpath_var=yes
9478
	ld_shlibs=yes
9479
      fi
9480
      ;;
9481
1.1.2 by Noah Slater
Import upstream version 0.8.0
9482
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
9483
      no_undefined_flag='${wl}-z,text'
9484
      archive_cmds_need_lc=no
9485
      hardcode_shlibpath_var=no
9486
      runpath_var='LD_RUN_PATH'
9487
9488
      if test "$GCC" = yes; then
9489
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491
      else
9492
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494
      fi
9495
      ;;
9496
9497
    sysv5* | sco3.2v5* | sco5v6*)
9498
      # Note: We can NOT use -z defs as we might desire, because we do not
9499
      # link with -lc, and that would cause any symbols used from libc to
9500
      # always be unresolved, which means just about no library would
9501
      # ever link correctly.  If we're not using GNU ld we use -z text
9502
      # though, which does catch some bad symbols but isn't as heavy-handed
9503
      # as -z defs.
9504
      no_undefined_flag='${wl}-z,text'
9505
      allow_undefined_flag='${wl}-z,nodefs'
9506
      archive_cmds_need_lc=no
9507
      hardcode_shlibpath_var=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9508
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9509
      hardcode_libdir_separator=':'
9510
      link_all_deplibs=yes
9511
      export_dynamic_flag_spec='${wl}-Bexport'
9512
      runpath_var='LD_RUN_PATH'
9513
9514
      if test "$GCC" = yes; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9515
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9517
      else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9518
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9520
      fi
9521
      ;;
9522
9523
    uts4*)
9524
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9525
      hardcode_libdir_flag_spec='-L$libdir'
9526
      hardcode_shlibpath_var=no
9527
      ;;
9528
9529
    *)
9530
      ld_shlibs=no
9531
      ;;
9532
    esac
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9533
9534
    if test x$host_vendor = xsni; then
9535
      case $host in
9536
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9537
	export_dynamic_flag_spec='${wl}-Blargedynsym'
9538
	;;
9539
      esac
9540
    fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
9541
  fi
9542
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9544
$as_echo "$ld_shlibs" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
9545
test "$ld_shlibs" = no && can_build_shared=no
9546
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9547
with_gnu_ld=$with_gnu_ld
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
1 by Noah Slater
Import upstream version 0.7.3~svn684
9563
#
9564
# Do we need to explicitly link libc?
9565
#
9566
case "x$archive_cmds_need_lc" in
9567
x|xyes)
9568
  # Assume -lc should be added
9569
  archive_cmds_need_lc=yes
9570
9571
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9572
    case $archive_cmds in
9573
    *'~'*)
9574
      # FIXME: we may have to deal with multi-command sequences.
9575
      ;;
9576
    '$CC '*)
9577
      # Test whether the compiler implicitly links with -lc since on some
9578
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9579
      # to ld, don't add -lc before -lgcc.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9580
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9581
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9582
      $RM conftest*
1.1.2 by Noah Slater
Import upstream version 0.8.0
9583
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
9584
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9585
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
9586
  (eval $ac_compile) 2>&5
9587
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9588
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9589
  test $ac_status = 0; } 2>conftest.err; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
9590
        soname=conftest
9591
        lib=conftest
9592
        libobjs=conftest.$ac_objext
9593
        deplibs=
9594
        wl=$lt_prog_compiler_wl
9595
	pic_flag=$lt_prog_compiler_pic
9596
        compiler_flags=-v
9597
        linker_flags=-v
9598
        verstring=
9599
        output_objdir=.
9600
        libname=conftest
9601
        lt_save_allow_undefined_flag=$allow_undefined_flag
9602
        allow_undefined_flag=
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9603
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9604
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
9605
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9606
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9607
  test $ac_status = 0; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
9608
        then
9609
	  archive_cmds_need_lc=no
9610
        else
9611
	  archive_cmds_need_lc=yes
9612
        fi
9613
        allow_undefined_flag=$lt_save_allow_undefined_flag
9614
      else
9615
        cat conftest.err 1>&5
9616
      fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9617
      $RM conftest*
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9618
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9619
$as_echo "$archive_cmds_need_lc" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
9620
      ;;
9621
    esac
9622
  fi
9623
  ;;
9624
esac
9625
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
9782
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9783
$as_echo_n "checking dynamic linker characteristics... " >&6; }
1.1.2 by Noah Slater
Import upstream version 0.8.0
9784
1 by Noah Slater
Import upstream version 0.7.3~svn684
9785
if test "$GCC" = yes; then
1.1.2 by Noah Slater
Import upstream version 0.8.0
9786
  case $host_os in
9787
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9788
    *) lt_awk_arg="/^libraries:/" ;;
9789
  esac
9790
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9791
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
9792
    # if the path contains ";" then we assume it to be the separator
9793
    # otherwise default to the standard path separator (i.e. ":") - it is
9794
    # assumed that no part of a normal pathname contains ";" but that should
9795
    # okay in the real world where ";" in dirpaths is itself problematic.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9796
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1 by Noah Slater
Import upstream version 0.7.3~svn684
9797
  else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9798
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1 by Noah Slater
Import upstream version 0.7.3~svn684
9799
  fi
1.1.2 by Noah Slater
Import upstream version 0.8.0
9800
  # Ok, now we have the path, separated by spaces, we can step through it
9801
  # and add multilib dir if necessary.
9802
  lt_tmp_lt_search_path_spec=
9803
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9804
  for lt_sys_path in $lt_search_path_spec; do
9805
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9806
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9807
    else
9808
      test -d "$lt_sys_path" && \
9809
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9810
    fi
9811
  done
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9812
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
1.1.2 by Noah Slater
Import upstream version 0.8.0
9813
BEGIN {RS=" "; FS="/|\n";} {
9814
  lt_foo="";
9815
  lt_count=0;
9816
  for (lt_i = NF; lt_i > 0; lt_i--) {
9817
    if ($lt_i != "" && $lt_i != ".") {
9818
      if ($lt_i == "..") {
9819
        lt_count++;
9820
      } else {
9821
        if (lt_count == 0) {
9822
          lt_foo="/" $lt_i lt_foo;
9823
        } else {
9824
          lt_count--;
9825
        }
9826
      }
9827
    }
9828
  }
9829
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9830
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9831
}'`
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9832
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
1 by Noah Slater
Import upstream version 0.7.3~svn684
9833
else
9834
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9835
fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9836
library_names_spec=
9837
libname_spec='lib$name'
9838
soname_spec=
9839
shrext_cmds=".so"
9840
postinstall_cmds=
9841
postuninstall_cmds=
9842
finish_cmds=
9843
finish_eval=
9844
shlibpath_var=
9845
shlibpath_overrides_runpath=unknown
9846
version_type=none
9847
dynamic_linker="$host_os ld.so"
9848
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1 by Noah Slater
Import upstream version 0.7.3~svn684
9849
need_lib_prefix=unknown
9850
hardcode_into_libs=no
9851
9852
# when you set need_version to no, make sure it does not cause -set_version
9853
# flags to be left without arguments
9854
need_version=unknown
9855
9856
case $host_os in
9857
aix3*)
9858
  version_type=linux
9859
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9860
  shlibpath_var=LIBPATH
9861
9862
  # AIX 3 has no versioning support, so we append a major version to the name.
9863
  soname_spec='${libname}${release}${shared_ext}$major'
9864
  ;;
9865
1.1.2 by Noah Slater
Import upstream version 0.8.0
9866
aix[4-9]*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
9867
  version_type=linux
9868
  need_lib_prefix=no
9869
  need_version=no
9870
  hardcode_into_libs=yes
9871
  if test "$host_cpu" = ia64; then
9872
    # AIX 5 supports IA64
9873
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9874
    shlibpath_var=LD_LIBRARY_PATH
9875
  else
9876
    # With GCC up to 2.95.x, collect2 would create an import file
9877
    # for dependence libraries.  The import file would start with
9878
    # the line `#! .'.  This would cause the generated library to
9879
    # depend on `.', always an invalid library.  This was fixed in
9880
    # development snapshots of GCC prior to 3.0.
9881
    case $host_os in
9882
      aix4 | aix4.[01] | aix4.[01].*)
9883
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9884
	   echo ' yes '
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9885
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
9886
	:
9887
      else
9888
	can_build_shared=no
9889
      fi
9890
      ;;
9891
    esac
9892
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9893
    # soname into executable. Probably we can add versioning support to
9894
    # collect2, so additional links can be useful in future.
9895
    if test "$aix_use_runtimelinking" = yes; then
9896
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9897
      # instead of lib<name>.a to let people know that these are not
9898
      # typical AIX shared libraries.
9899
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900
    else
9901
      # We preserve .a as extension for shared libraries through AIX4.2
9902
      # and later when we are not doing run time linking.
9903
      library_names_spec='${libname}${release}.a $libname.a'
9904
      soname_spec='${libname}${release}${shared_ext}$major'
9905
    fi
9906
    shlibpath_var=LIBPATH
9907
  fi
9908
  ;;
9909
9910
amigaos*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9911
  case $host_cpu in
9912
  powerpc)
9913
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9914
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9915
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916
    ;;
9917
  m68k)
9918
    library_names_spec='$libname.ixlibrary $libname.a'
9919
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9920
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9921
    ;;
9922
  esac
1 by Noah Slater
Import upstream version 0.7.3~svn684
9923
  ;;
9924
9925
beos*)
9926
  library_names_spec='${libname}${shared_ext}'
9927
  dynamic_linker="$host_os ld.so"
9928
  shlibpath_var=LIBRARY_PATH
9929
  ;;
9930
9931
bsdi[45]*)
9932
  version_type=linux
9933
  need_version=no
9934
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935
  soname_spec='${libname}${release}${shared_ext}$major'
9936
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9937
  shlibpath_var=LD_LIBRARY_PATH
9938
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9939
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9940
  # the default ld.so.conf also contains /usr/contrib/lib and
9941
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9942
  # libtool to hard-code these into programs
9943
  ;;
9944
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9945
cygwin* | mingw* | pw32* | cegcc*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
9946
  version_type=windows
9947
  shrext_cmds=".dll"
9948
  need_version=no
9949
  need_lib_prefix=no
9950
9951
  case $GCC,$host_os in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9952
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
9953
    library_names_spec='$libname.dll.a'
9954
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9955
    postinstall_cmds='base_file=`basename \${file}`~
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9956
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1 by Noah Slater
Import upstream version 0.7.3~svn684
9957
      dldir=$destdir/`dirname \$dlpath`~
9958
      test -d \$dldir || mkdir -p \$dldir~
9959
      $install_prog $dir/$dlname \$dldir/$dlname~
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9960
      chmod a+x \$dldir/$dlname~
9961
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9962
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9963
      fi'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9964
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9965
      dlpath=$dir/\$dldll~
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9966
       $RM \$dlpath'
1 by Noah Slater
Import upstream version 0.7.3~svn684
9967
    shlibpath_overrides_runpath=yes
9968
9969
    case $host_os in
9970
    cygwin*)
9971
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9972
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9974
      ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9975
    mingw* | cegcc*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
9976
      # MinGW DLLs use traditional 'lib' prefix
9977
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9978
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9979
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
9980
        # It is most probably a Windows format PATH printed by
9981
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9982
        # path with ; separators, and with drive letters. We can handle the
9983
        # drive letters (cygwin fileutils understands them), so leave them,
9984
        # especially as we might pass files found there to a mingw objdump,
9985
        # which wouldn't understand a cygwinified path. Ahh.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9986
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1 by Noah Slater
Import upstream version 0.7.3~svn684
9987
      else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
9988
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1 by Noah Slater
Import upstream version 0.7.3~svn684
9989
      fi
9990
      ;;
9991
    pw32*)
9992
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9993
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9994
      ;;
9995
    esac
9996
    ;;
9997
9998
  *)
9999
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10000
    ;;
10001
  esac
10002
  dynamic_linker='Win32 ld.exe'
10003
  # FIXME: first we should search . and the directory the executable is in
10004
  shlibpath_var=PATH
10005
  ;;
10006
10007
darwin* | rhapsody*)
10008
  dynamic_linker="$host_os dyld"
10009
  version_type=darwin
10010
  need_lib_prefix=no
10011
  need_version=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10012
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1 by Noah Slater
Import upstream version 0.7.3~svn684
10013
  soname_spec='${libname}${release}${major}$shared_ext'
10014
  shlibpath_overrides_runpath=yes
10015
  shlibpath_var=DYLD_LIBRARY_PATH
10016
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1.2 by Noah Slater
Import upstream version 0.8.0
10017
10018
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
1 by Noah Slater
Import upstream version 0.7.3~svn684
10019
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10020
  ;;
10021
10022
dgux*)
10023
  version_type=linux
10024
  need_lib_prefix=no
10025
  need_version=no
10026
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10027
  soname_spec='${libname}${release}${shared_ext}$major'
10028
  shlibpath_var=LD_LIBRARY_PATH
10029
  ;;
10030
10031
freebsd1*)
10032
  dynamic_linker=no
10033
  ;;
10034
10035
freebsd* | dragonfly*)
10036
  # DragonFly does not have aout.  When/if they implement a new
10037
  # versioning mechanism, adjust this.
10038
  if test -x /usr/bin/objformat; then
10039
    objformat=`/usr/bin/objformat`
10040
  else
10041
    case $host_os in
10042
    freebsd[123]*) objformat=aout ;;
10043
    *) objformat=elf ;;
10044
    esac
10045
  fi
10046
  version_type=freebsd-$objformat
10047
  case $version_type in
10048
    freebsd-elf*)
10049
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10050
      need_version=no
10051
      need_lib_prefix=no
10052
      ;;
10053
    freebsd-*)
10054
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10055
      need_version=yes
10056
      ;;
10057
  esac
10058
  shlibpath_var=LD_LIBRARY_PATH
10059
  case $host_os in
10060
  freebsd2*)
10061
    shlibpath_overrides_runpath=yes
10062
    ;;
10063
  freebsd3.[01]* | freebsdelf3.[01]*)
10064
    shlibpath_overrides_runpath=yes
10065
    hardcode_into_libs=yes
10066
    ;;
10067
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10068
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10069
    shlibpath_overrides_runpath=no
10070
    hardcode_into_libs=yes
10071
    ;;
1.1.2 by Noah Slater
Import upstream version 0.8.0
10072
  *) # from 4.6 on, and DragonFly
1 by Noah Slater
Import upstream version 0.7.3~svn684
10073
    shlibpath_overrides_runpath=yes
10074
    hardcode_into_libs=yes
10075
    ;;
10076
  esac
10077
  ;;
10078
10079
gnu*)
10080
  version_type=linux
10081
  need_lib_prefix=no
10082
  need_version=no
10083
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10084
  soname_spec='${libname}${release}${shared_ext}$major'
10085
  shlibpath_var=LD_LIBRARY_PATH
10086
  hardcode_into_libs=yes
10087
  ;;
10088
10089
hpux9* | hpux10* | hpux11*)
10090
  # Give a soname corresponding to the major version so that dld.sl refuses to
10091
  # link against other versions.
10092
  version_type=sunos
10093
  need_lib_prefix=no
10094
  need_version=no
10095
  case $host_cpu in
10096
  ia64*)
10097
    shrext_cmds='.so'
10098
    hardcode_into_libs=yes
10099
    dynamic_linker="$host_os dld.so"
10100
    shlibpath_var=LD_LIBRARY_PATH
10101
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10102
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103
    soname_spec='${libname}${release}${shared_ext}$major'
10104
    if test "X$HPUX_IA64_MODE" = X32; then
10105
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10106
    else
10107
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10108
    fi
10109
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10110
    ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10111
  hppa*64*)
10112
    shrext_cmds='.sl'
10113
    hardcode_into_libs=yes
10114
    dynamic_linker="$host_os dld.sl"
10115
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10116
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10117
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118
    soname_spec='${libname}${release}${shared_ext}$major'
10119
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10120
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10121
    ;;
10122
  *)
1 by Noah Slater
Import upstream version 0.7.3~svn684
10123
    shrext_cmds='.sl'
10124
    dynamic_linker="$host_os dld.sl"
10125
    shlibpath_var=SHLIB_PATH
10126
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10127
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128
    soname_spec='${libname}${release}${shared_ext}$major'
10129
    ;;
10130
  esac
10131
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10132
  postinstall_cmds='chmod 555 $lib'
10133
  ;;
10134
1.1.2 by Noah Slater
Import upstream version 0.8.0
10135
interix[3-9]*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
10136
  version_type=linux
10137
  need_lib_prefix=no
10138
  need_version=no
10139
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10140
  soname_spec='${libname}${release}${shared_ext}$major'
10141
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10142
  shlibpath_var=LD_LIBRARY_PATH
10143
  shlibpath_overrides_runpath=no
10144
  hardcode_into_libs=yes
10145
  ;;
10146
10147
irix5* | irix6* | nonstopux*)
10148
  case $host_os in
10149
    nonstopux*) version_type=nonstopux ;;
10150
    *)
10151
	if test "$lt_cv_prog_gnu_ld" = yes; then
10152
		version_type=linux
10153
	else
10154
		version_type=irix
10155
	fi ;;
10156
  esac
10157
  need_lib_prefix=no
10158
  need_version=no
10159
  soname_spec='${libname}${release}${shared_ext}$major'
10160
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10161
  case $host_os in
10162
  irix5* | nonstopux*)
10163
    libsuff= shlibsuff=
10164
    ;;
10165
  *)
10166
    case $LD in # libtool.m4 will add one of these switches to LD
10167
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10168
      libsuff= shlibsuff= libmagic=32-bit;;
10169
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10170
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10171
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10172
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10173
    *) libsuff= shlibsuff= libmagic=never-match;;
10174
    esac
10175
    ;;
10176
  esac
10177
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10178
  shlibpath_overrides_runpath=no
10179
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10180
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10181
  hardcode_into_libs=yes
10182
  ;;
10183
10184
# No shared lib support for Linux oldld, aout, or coff.
10185
linux*oldld* | linux*aout* | linux*coff*)
10186
  dynamic_linker=no
10187
  ;;
10188
10189
# This must be Linux ELF.
10190
linux* | k*bsd*-gnu)
10191
  version_type=linux
10192
  need_lib_prefix=no
10193
  need_version=no
10194
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195
  soname_spec='${libname}${release}${shared_ext}$major'
10196
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10197
  shlibpath_var=LD_LIBRARY_PATH
10198
  shlibpath_overrides_runpath=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10199
  # Some binutils ld are patched to set DT_RUNPATH
10200
  save_LDFLAGS=$LDFLAGS
10201
  save_libdir=$libdir
10202
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10203
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10204
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10205
/* end confdefs.h.  */
10206
10207
int
10208
main ()
10209
{
10210
10211
  ;
10212
  return 0;
10213
}
10214
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10215
if ac_fn_c_try_link "$LINENO"; then :
10216
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10217
  shlibpath_overrides_runpath=yes
10218
fi
10219
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10220
rm -f core conftest.err conftest.$ac_objext \
10221
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10222
  LDFLAGS=$save_LDFLAGS
10223
  libdir=$save_libdir
10224
1 by Noah Slater
Import upstream version 0.7.3~svn684
10225
  # This implies no fast_install, which is unacceptable.
10226
  # Some rework will be needed to allow for fast_install
10227
  # before this can be enabled.
10228
  hardcode_into_libs=yes
10229
10230
  # Append ld.so.conf contents to the search path
10231
  if test -f /etc/ld.so.conf; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10232
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1 by Noah Slater
Import upstream version 0.7.3~svn684
10233
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10234
  fi
10235
10236
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10237
  # powerpc, because MkLinux only supported shared libraries with the
10238
  # GNU dynamic linker.  Since this was broken with cross compilers,
10239
  # most powerpc-linux boxes support dynamic linking these days and
10240
  # people can always --disable-shared, the test was removed, and we
10241
  # assume the GNU/Linux dynamic linker is in use.
10242
  dynamic_linker='GNU/Linux ld.so'
10243
  ;;
10244
10245
netbsd*)
10246
  version_type=sunos
10247
  need_lib_prefix=no
10248
  need_version=no
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10249
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
10250
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252
    dynamic_linker='NetBSD (a.out) ld.so'
10253
  else
10254
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10255
    soname_spec='${libname}${release}${shared_ext}$major'
10256
    dynamic_linker='NetBSD ld.elf_so'
10257
  fi
10258
  shlibpath_var=LD_LIBRARY_PATH
10259
  shlibpath_overrides_runpath=yes
10260
  hardcode_into_libs=yes
10261
  ;;
10262
10263
newsos6)
10264
  version_type=linux
10265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266
  shlibpath_var=LD_LIBRARY_PATH
10267
  shlibpath_overrides_runpath=yes
10268
  ;;
10269
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10270
*nto* | *qnx*)
10271
  version_type=qnx
1 by Noah Slater
Import upstream version 0.7.3~svn684
10272
  need_lib_prefix=no
10273
  need_version=no
10274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275
  soname_spec='${libname}${release}${shared_ext}$major'
10276
  shlibpath_var=LD_LIBRARY_PATH
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10277
  shlibpath_overrides_runpath=no
10278
  hardcode_into_libs=yes
10279
  dynamic_linker='ldqnx.so'
1 by Noah Slater
Import upstream version 0.7.3~svn684
10280
  ;;
10281
10282
openbsd*)
10283
  version_type=sunos
10284
  sys_lib_dlsearch_path_spec="/usr/lib"
10285
  need_lib_prefix=no
10286
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10287
  case $host_os in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10288
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10289
    *)				need_version=no  ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
10290
  esac
10291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10292
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10293
  shlibpath_var=LD_LIBRARY_PATH
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10294
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
10295
    case $host_os in
10296
      openbsd2.[89] | openbsd2.[89].*)
10297
	shlibpath_overrides_runpath=no
10298
	;;
10299
      *)
10300
	shlibpath_overrides_runpath=yes
10301
	;;
10302
      esac
10303
  else
10304
    shlibpath_overrides_runpath=yes
10305
  fi
10306
  ;;
10307
10308
os2*)
10309
  libname_spec='$name'
10310
  shrext_cmds=".dll"
10311
  need_lib_prefix=no
10312
  library_names_spec='$libname${shared_ext} $libname.a'
10313
  dynamic_linker='OS/2 ld.exe'
10314
  shlibpath_var=LIBPATH
10315
  ;;
10316
10317
osf3* | osf4* | osf5*)
10318
  version_type=osf
10319
  need_lib_prefix=no
10320
  need_version=no
10321
  soname_spec='${libname}${release}${shared_ext}$major'
10322
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323
  shlibpath_var=LD_LIBRARY_PATH
10324
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10325
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10326
  ;;
10327
1.1.2 by Noah Slater
Import upstream version 0.8.0
10328
rdos*)
10329
  dynamic_linker=no
10330
  ;;
10331
1 by Noah Slater
Import upstream version 0.7.3~svn684
10332
solaris*)
10333
  version_type=linux
10334
  need_lib_prefix=no
10335
  need_version=no
10336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337
  soname_spec='${libname}${release}${shared_ext}$major'
10338
  shlibpath_var=LD_LIBRARY_PATH
10339
  shlibpath_overrides_runpath=yes
10340
  hardcode_into_libs=yes
10341
  # ldd complains unless libraries are executable
10342
  postinstall_cmds='chmod +x $lib'
10343
  ;;
10344
10345
sunos4*)
10346
  version_type=sunos
10347
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10348
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10349
  shlibpath_var=LD_LIBRARY_PATH
10350
  shlibpath_overrides_runpath=yes
10351
  if test "$with_gnu_ld" = yes; then
10352
    need_lib_prefix=no
10353
  fi
10354
  need_version=yes
10355
  ;;
10356
10357
sysv4 | sysv4.3*)
10358
  version_type=linux
10359
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360
  soname_spec='${libname}${release}${shared_ext}$major'
10361
  shlibpath_var=LD_LIBRARY_PATH
10362
  case $host_vendor in
10363
    sni)
10364
      shlibpath_overrides_runpath=no
10365
      need_lib_prefix=no
10366
      runpath_var=LD_RUN_PATH
10367
      ;;
10368
    siemens)
10369
      need_lib_prefix=no
10370
      ;;
10371
    motorola)
10372
      need_lib_prefix=no
10373
      need_version=no
10374
      shlibpath_overrides_runpath=no
10375
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10376
      ;;
10377
  esac
10378
  ;;
10379
10380
sysv4*MP*)
10381
  if test -d /usr/nec ;then
10382
    version_type=linux
10383
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10384
    soname_spec='$libname${shared_ext}.$major'
10385
    shlibpath_var=LD_LIBRARY_PATH
10386
  fi
10387
  ;;
10388
10389
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10390
  version_type=freebsd-elf
10391
  need_lib_prefix=no
10392
  need_version=no
10393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10394
  soname_spec='${libname}${release}${shared_ext}$major'
10395
  shlibpath_var=LD_LIBRARY_PATH
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10396
  shlibpath_overrides_runpath=yes
1 by Noah Slater
Import upstream version 0.7.3~svn684
10397
  hardcode_into_libs=yes
10398
  if test "$with_gnu_ld" = yes; then
10399
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10400
  else
10401
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10402
    case $host_os in
10403
      sco3.2v5*)
10404
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10405
	;;
10406
    esac
10407
  fi
10408
  sys_lib_dlsearch_path_spec='/usr/lib'
10409
  ;;
10410
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10411
tpf*)
10412
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10413
  version_type=linux
10414
  need_lib_prefix=no
10415
  need_version=no
10416
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417
  shlibpath_var=LD_LIBRARY_PATH
10418
  shlibpath_overrides_runpath=no
10419
  hardcode_into_libs=yes
10420
  ;;
10421
1 by Noah Slater
Import upstream version 0.7.3~svn684
10422
uts4*)
10423
  version_type=linux
10424
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425
  soname_spec='${libname}${release}${shared_ext}$major'
10426
  shlibpath_var=LD_LIBRARY_PATH
10427
  ;;
10428
10429
*)
10430
  dynamic_linker=no
10431
  ;;
10432
esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10434
$as_echo "$dynamic_linker" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
10435
test "$dynamic_linker" = no && can_build_shared=no
10436
10437
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10438
if test "$GCC" = yes; then
10439
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10440
fi
10441
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10442
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10443
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10444
fi
10445
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10446
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10447
fi
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10535
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10536
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
10537
hardcode_action=
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10538
if test -n "$hardcode_libdir_flag_spec" ||
10539
   test -n "$runpath_var" ||
1 by Noah Slater
Import upstream version 0.7.3~svn684
10540
   test "X$hardcode_automatic" = "Xyes" ; then
10541
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10542
  # We can hardcode non-existent directories.
1 by Noah Slater
Import upstream version 0.7.3~svn684
10543
  if test "$hardcode_direct" != no &&
10544
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10545
     # have to relink, otherwise we might link with an installed library
10546
     # when we should be linking with a yet-to-be-installed one
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10547
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
1 by Noah Slater
Import upstream version 0.7.3~svn684
10548
     test "$hardcode_minus_L" != no; then
10549
    # Linking always hardcodes the temporary library directory.
10550
    hardcode_action=relink
10551
  else
10552
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10553
    hardcode_action=immediate
10554
  fi
10555
else
10556
  # We cannot hardcode anything, or else we can only hardcode existing
10557
  # directories.
10558
  hardcode_action=unsupported
10559
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10561
$as_echo "$hardcode_action" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
10562
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10563
if test "$hardcode_action" = relink ||
10564
   test "$inherit_rpath" = yes; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
10565
  # Fast installation is not supported
10566
  enable_fast_install=no
10567
elif test "$shlibpath_overrides_runpath" = yes ||
10568
     test "$enable_shared" = no; then
10569
  # Fast installation is not necessary
10570
  enable_fast_install=needless
10571
fi
10572
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10573
10574
10575
10576
10577
10578
  if test "x$enable_dlopen" != xyes; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
10579
  enable_dlopen=unknown
10580
  enable_dlopen_self=unknown
10581
  enable_dlopen_self_static=unknown
10582
else
10583
  lt_cv_dlopen=no
10584
  lt_cv_dlopen_libs=
10585
10586
  case $host_os in
10587
  beos*)
10588
    lt_cv_dlopen="load_add_on"
10589
    lt_cv_dlopen_libs=
10590
    lt_cv_dlopen_self=yes
10591
    ;;
10592
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10593
  mingw* | pw32* | cegcc*)
1 by Noah Slater
Import upstream version 0.7.3~svn684
10594
    lt_cv_dlopen="LoadLibrary"
10595
    lt_cv_dlopen_libs=
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10596
    ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
10597
10598
  cygwin*)
10599
    lt_cv_dlopen="dlopen"
10600
    lt_cv_dlopen_libs=
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10601
    ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
10602
10603
  darwin*)
10604
  # if libdl is installed we need to link against it
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10605
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10606
$as_echo_n "checking for dlopen in -ldl... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10607
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10608
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
10609
else
10610
  ac_check_lib_save_LIBS=$LIBS
10611
LIBS="-ldl  $LIBS"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10612
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
10613
/* end confdefs.h.  */
10614
10615
/* Override any GCC internal prototype to avoid an error.
10616
   Use char because int might match the return type of a GCC
10617
   builtin and then its argument prototype would still apply.  */
10618
#ifdef __cplusplus
10619
extern "C"
10620
#endif
10621
char dlopen ();
10622
int
10623
main ()
10624
{
10625
return dlopen ();
10626
  ;
10627
  return 0;
10628
}
10629
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10630
if ac_fn_c_try_link "$LINENO"; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
10631
  ac_cv_lib_dl_dlopen=yes
10632
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10633
  ac_cv_lib_dl_dlopen=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
10634
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10635
rm -f core conftest.err conftest.$ac_objext \
10636
    conftest$ac_exeext conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
10637
LIBS=$ac_check_lib_save_LIBS
10638
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10640
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10641
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
10642
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10643
else
10644
10645
    lt_cv_dlopen="dyld"
10646
    lt_cv_dlopen_libs=
10647
    lt_cv_dlopen_self=yes
10648
10649
fi
10650
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10651
    ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
10652
10653
  *)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10654
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10655
if test "x$ac_cv_func_shl_load" = x""yes; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
10656
  lt_cv_dlopen="shl_load"
10657
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10658
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10659
$as_echo_n "checking for shl_load in -ldld... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10660
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10661
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
10662
else
10663
  ac_check_lib_save_LIBS=$LIBS
10664
LIBS="-ldld  $LIBS"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10665
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
10666
/* end confdefs.h.  */
10667
10668
/* Override any GCC internal prototype to avoid an error.
10669
   Use char because int might match the return type of a GCC
10670
   builtin and then its argument prototype would still apply.  */
10671
#ifdef __cplusplus
10672
extern "C"
10673
#endif
10674
char shl_load ();
10675
int
10676
main ()
10677
{
10678
return shl_load ();
10679
  ;
10680
  return 0;
10681
}
10682
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10683
if ac_fn_c_try_link "$LINENO"; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
10684
  ac_cv_lib_dld_shl_load=yes
10685
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10686
  ac_cv_lib_dld_shl_load=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
10687
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10688
rm -f core conftest.err conftest.$ac_objext \
10689
    conftest$ac_exeext conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
10690
LIBS=$ac_check_lib_save_LIBS
10691
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10693
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10694
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
1.1.2 by Noah Slater
Import upstream version 0.8.0
10695
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1 by Noah Slater
Import upstream version 0.7.3~svn684
10696
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10697
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10698
if test "x$ac_cv_func_dlopen" = x""yes; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
10699
  lt_cv_dlopen="dlopen"
10700
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10701
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10702
$as_echo_n "checking for dlopen in -ldl... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10703
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10704
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
10705
else
10706
  ac_check_lib_save_LIBS=$LIBS
10707
LIBS="-ldl  $LIBS"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10708
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
10709
/* end confdefs.h.  */
10710
10711
/* Override any GCC internal prototype to avoid an error.
10712
   Use char because int might match the return type of a GCC
10713
   builtin and then its argument prototype would still apply.  */
10714
#ifdef __cplusplus
10715
extern "C"
10716
#endif
10717
char dlopen ();
10718
int
10719
main ()
10720
{
10721
return dlopen ();
10722
  ;
10723
  return 0;
10724
}
10725
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10726
if ac_fn_c_try_link "$LINENO"; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
10727
  ac_cv_lib_dl_dlopen=yes
10728
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10729
  ac_cv_lib_dl_dlopen=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
10730
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10731
rm -f core conftest.err conftest.$ac_objext \
10732
    conftest$ac_exeext conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
10733
LIBS=$ac_check_lib_save_LIBS
10734
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10736
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10737
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
10738
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10739
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10740
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10741
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10742
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10743
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
10744
else
10745
  ac_check_lib_save_LIBS=$LIBS
10746
LIBS="-lsvld  $LIBS"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10747
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
10748
/* end confdefs.h.  */
10749
10750
/* Override any GCC internal prototype to avoid an error.
10751
   Use char because int might match the return type of a GCC
10752
   builtin and then its argument prototype would still apply.  */
10753
#ifdef __cplusplus
10754
extern "C"
10755
#endif
10756
char dlopen ();
10757
int
10758
main ()
10759
{
10760
return dlopen ();
10761
  ;
10762
  return 0;
10763
}
10764
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10765
if ac_fn_c_try_link "$LINENO"; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
10766
  ac_cv_lib_svld_dlopen=yes
10767
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10768
  ac_cv_lib_svld_dlopen=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
10769
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10770
rm -f core conftest.err conftest.$ac_objext \
10771
    conftest$ac_exeext conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
10772
LIBS=$ac_check_lib_save_LIBS
10773
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10775
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10776
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
10777
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10778
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10779
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10780
$as_echo_n "checking for dld_link in -ldld... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10781
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10782
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
10783
else
10784
  ac_check_lib_save_LIBS=$LIBS
10785
LIBS="-ldld  $LIBS"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10786
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
10787
/* end confdefs.h.  */
10788
10789
/* Override any GCC internal prototype to avoid an error.
10790
   Use char because int might match the return type of a GCC
10791
   builtin and then its argument prototype would still apply.  */
10792
#ifdef __cplusplus
10793
extern "C"
10794
#endif
10795
char dld_link ();
10796
int
10797
main ()
10798
{
10799
return dld_link ();
10800
  ;
10801
  return 0;
10802
}
10803
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10804
if ac_fn_c_try_link "$LINENO"; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
10805
  ac_cv_lib_dld_dld_link=yes
10806
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10807
  ac_cv_lib_dld_dld_link=no
1 by Noah Slater
Import upstream version 0.7.3~svn684
10808
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10809
rm -f core conftest.err conftest.$ac_objext \
10810
    conftest$ac_exeext conftest.$ac_ext
1 by Noah Slater
Import upstream version 0.7.3~svn684
10811
LIBS=$ac_check_lib_save_LIBS
10812
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10814
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10815
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
1.1.2 by Noah Slater
Import upstream version 0.8.0
10816
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1 by Noah Slater
Import upstream version 0.7.3~svn684
10817
fi
10818
10819
10820
fi
10821
10822
10823
fi
10824
10825
10826
fi
10827
10828
10829
fi
10830
10831
10832
fi
10833
10834
    ;;
10835
  esac
10836
10837
  if test "x$lt_cv_dlopen" != xno; then
10838
    enable_dlopen=yes
10839
  else
10840
    enable_dlopen=no
10841
  fi
10842
10843
  case $lt_cv_dlopen in
10844
  dlopen)
10845
    save_CPPFLAGS="$CPPFLAGS"
10846
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10847
10848
    save_LDFLAGS="$LDFLAGS"
10849
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10850
10851
    save_LIBS="$LIBS"
10852
    LIBS="$lt_cv_dlopen_libs $LIBS"
10853
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10854
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10855
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10856
if test "${lt_cv_dlopen_self+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10857
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
10858
else
10859
  	  if test "$cross_compiling" = yes; then :
10860
  lt_cv_dlopen_self=cross
10861
else
10862
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10863
  lt_status=$lt_dlunknown
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10864
  cat > conftest.$ac_ext <<_LT_EOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10865
#line 10865 "configure"
1 by Noah Slater
Import upstream version 0.7.3~svn684
10866
#include "confdefs.h"
10867
10868
#if HAVE_DLFCN_H
10869
#include <dlfcn.h>
10870
#endif
10871
10872
#include <stdio.h>
10873
10874
#ifdef RTLD_GLOBAL
10875
#  define LT_DLGLOBAL		RTLD_GLOBAL
10876
#else
10877
#  ifdef DL_GLOBAL
10878
#    define LT_DLGLOBAL		DL_GLOBAL
10879
#  else
10880
#    define LT_DLGLOBAL		0
10881
#  endif
10882
#endif
10883
10884
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10885
   find out it does not work in some platform. */
10886
#ifndef LT_DLLAZY_OR_NOW
10887
#  ifdef RTLD_LAZY
10888
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10889
#  else
10890
#    ifdef DL_LAZY
10891
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10892
#    else
10893
#      ifdef RTLD_NOW
10894
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10895
#      else
10896
#        ifdef DL_NOW
10897
#          define LT_DLLAZY_OR_NOW	DL_NOW
10898
#        else
10899
#          define LT_DLLAZY_OR_NOW	0
10900
#        endif
10901
#      endif
10902
#    endif
10903
#  endif
10904
#endif
10905
10906
void fnord() { int i=42;}
10907
int main ()
10908
{
10909
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10910
  int status = $lt_dlunknown;
10911
10912
  if (self)
10913
    {
10914
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10915
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10916
      /* dlclose (self); */
10917
    }
10918
  else
10919
    puts (dlerror ());
10920
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10921
  return status;
1 by Noah Slater
Import upstream version 0.7.3~svn684
10922
}
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10923
_LT_EOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10924
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
10925
  (eval $ac_link) 2>&5
10926
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10927
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10928
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
10929
    (./conftest; exit; ) >&5 2>/dev/null
10930
    lt_status=$?
10931
    case x$lt_status in
10932
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10933
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10934
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10935
    esac
10936
  else :
10937
    # compilation failed
10938
    lt_cv_dlopen_self=no
10939
  fi
10940
fi
10941
rm -fr conftest*
10942
10943
10944
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10946
$as_echo "$lt_cv_dlopen_self" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
10947
10948
    if test "x$lt_cv_dlopen_self" = xyes; then
10949
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10950
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10951
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10952
if test "${lt_cv_dlopen_self_static+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10953
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
10954
else
10955
  	  if test "$cross_compiling" = yes; then :
10956
  lt_cv_dlopen_self_static=cross
10957
else
10958
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10959
  lt_status=$lt_dlunknown
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
10960
  cat > conftest.$ac_ext <<_LT_EOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
10961
#line 10961 "configure"
1 by Noah Slater
Import upstream version 0.7.3~svn684
10962
#include "confdefs.h"
10963
10964
#if HAVE_DLFCN_H
10965
#include <dlfcn.h>
10966
#endif
10967
10968
#include <stdio.h>
10969
10970
#ifdef RTLD_GLOBAL
10971
#  define LT_DLGLOBAL		RTLD_GLOBAL
10972
#else
10973
#  ifdef DL_GLOBAL
10974
#    define LT_DLGLOBAL		DL_GLOBAL
10975
#  else
10976
#    define LT_DLGLOBAL		0
10977
#  endif
10978
#endif
10979
10980
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10981
   find out it does not work in some platform. */
10982
#ifndef LT_DLLAZY_OR_NOW
10983
#  ifdef RTLD_LAZY
10984
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10985
#  else
10986
#    ifdef DL_LAZY
10987
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10988
#    else
10989
#      ifdef RTLD_NOW
10990
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10991
#      else
10992
#        ifdef DL_NOW
10993
#          define LT_DLLAZY_OR_NOW	DL_NOW
10994
#        else
10995
#          define LT_DLLAZY_OR_NOW	0
10996
#        endif
10997
#      endif
10998
#    endif
10999
#  endif
11000
#endif
11001
11002
void fnord() { int i=42;}
11003
int main ()
11004
{
11005
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11006
  int status = $lt_dlunknown;
11007
11008
  if (self)
11009
    {
11010
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11011
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11012
      /* dlclose (self); */
11013
    }
11014
  else
11015
    puts (dlerror ());
11016
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11017
  return status;
1 by Noah Slater
Import upstream version 0.7.3~svn684
11018
}
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11019
_LT_EOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11020
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
11021
  (eval $ac_link) 2>&5
11022
  ac_status=$?
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11023
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
11025
    (./conftest; exit; ) >&5 2>/dev/null
11026
    lt_status=$?
11027
    case x$lt_status in
11028
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11029
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11030
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11031
    esac
11032
  else :
11033
    # compilation failed
11034
    lt_cv_dlopen_self_static=no
11035
  fi
11036
fi
11037
rm -fr conftest*
11038
11039
11040
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11042
$as_echo "$lt_cv_dlopen_self_static" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11043
    fi
11044
11045
    CPPFLAGS="$save_CPPFLAGS"
11046
    LDFLAGS="$save_LDFLAGS"
11047
    LIBS="$save_LIBS"
11048
    ;;
11049
  esac
11050
11051
  case $lt_cv_dlopen_self in
11052
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11053
  *) enable_dlopen_self=unknown ;;
11054
  esac
11055
11056
  case $lt_cv_dlopen_self_static in
11057
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11058
  *) enable_dlopen_self_static=unknown ;;
11059
  esac
11060
fi
11061
11062
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
striplib=
11079
old_striplib=
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11081
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11082
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11083
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11084
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11085
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11086
$as_echo "yes" >&6; }
11087
else
11088
# FIXME - insert some real tests, host_os isn't really good enough
11089
  case $host_os in
11090
  darwin*)
11091
    if test -n "$STRIP" ; then
11092
      striplib="$STRIP -x"
11093
      old_striplib="$STRIP -S"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11094
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11095
$as_echo "yes" >&6; }
11096
    else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11097
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11098
$as_echo "no" >&6; }
11099
    fi
11100
    ;;
11101
  *)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11102
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11103
$as_echo "no" >&6; }
11104
    ;;
11105
  esac
11106
fi
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
  # Report which library types will actually be built
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11120
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11121
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11123
$as_echo "$can_build_shared" >&6; }
11124
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11125
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11126
$as_echo_n "checking whether to build shared libraries... " >&6; }
11127
  test "$can_build_shared" = "no" && enable_shared=no
11128
11129
  # On AIX, shared libraries and static libraries use the same namespace, and
11130
  # are all built from PIC.
11131
  case $host_os in
11132
  aix3*)
11133
    test "$enable_shared" = yes && enable_static=no
11134
    if test -n "$RANLIB"; then
11135
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11136
      postinstall_cmds='$RANLIB $lib'
11137
    fi
11138
    ;;
11139
11140
  aix[4-9]*)
11141
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11142
      test "$enable_shared" = yes && enable_static=no
11143
    fi
11144
    ;;
11145
  esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11146
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11147
$as_echo "$enable_shared" >&6; }
11148
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11149
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11150
$as_echo_n "checking whether to build static libraries... " >&6; }
11151
  # Make sure either enable_shared or enable_static is yes.
11152
  test "$enable_shared" = yes || enable_static=yes
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11154
$as_echo "$enable_static" >&6; }
11155
11156
11157
11158
11159
fi
11160
ac_ext=c
11161
ac_cpp='$CPP $CPPFLAGS'
11162
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11163
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11164
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11165
11166
CC="$lt_save_CC"
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
        ac_config_commands="$ac_config_commands libtool"
11181
11182
11183
11184
11185
# Only expand once:
11186
11187
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11189
$as_echo_n "checking whether ln -s works... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11190
LN_S=$as_ln_s
11191
if test "$LN_S" = "ln -s"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11193
$as_echo "yes" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11194
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11195
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11196
$as_echo "no, using $LN_S" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11197
fi
11198
11199
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11201
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11202
11203
original_LIBS="$LIBS"
11204
LIBS="-lpthread $original_LIBS"
11205
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11206
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11207
/* end confdefs.h.  */
11208
#include<pthread.h>
11209
int
11210
main ()
11211
{
11212
pthread_create((void *)0, (void *)0, (void *)0, (void *)0)
11213
  ;
11214
  return 0;
11215
}
11216
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11217
if ac_fn_c_try_link "$LINENO"; then :
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11218
  pthread=yes
11219
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11220
  pthread=no
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11221
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11222
rm -f core conftest.err conftest.$ac_objext \
11223
    conftest$ac_exeext conftest.$ac_ext
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11224
11225
if test x${pthread} = xyes; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11226
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11227
$as_echo "yes" >&6; }
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11228
else
11229
    LIBS="$original_LIBS"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11230
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11231
$as_echo "no" >&6; }
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11232
fi
11233
1 by Noah Slater
Import upstream version 0.7.3~svn684
11234
11235
# Check whether --with-erlang was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11236
if test "${with_erlang+set}" = set; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
11237
  withval=$with_erlang;
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11238
    ERLANG_FLAGS="-I$withval"
11239
11240
else
11241
11242
    ERLANG_FLAGS="-I${libdir}/erlang/usr/include"
11243
    ERLANG_FLAGS="$ERLANG_FLAGS -I/usr/lib/erlang/usr/include"
11244
    ERLANG_FLAGS="$ERLANG_FLAGS -I/usr/local/lib/erlang/usr/include"
11245
    ERLANG_FLAGS="$ERLANG_FLAGS -I/opt/local/lib/erlang/usr/include"
11246
11247
fi
11248
11249
11250
11251
# Check whether --with-js-include was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11252
if test "${with_js_include+set}" = set; then :
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11253
  withval=$with_js_include;
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11254
    JS_INCLUDE="$withval"
11255
    JS_FLAGS="-I$JS_INCLUDE"
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11256
11257
else
11258
1.2.1 by Noah Slater
Import upstream version 0.9.0
11259
    JS_FLAGS="-I/usr/include"
11260
    JS_FLAGS="$JS_FLAGS -I/usr/include/js"
11261
    JS_FLAGS="$JS_FLAGS -I/usr/include/mozjs"
11262
    JS_FLAGS="$JS_FLAGS -I/usr/local/include"
11263
    JS_FLAGS="$JS_FLAGS -I/opt/local/include"
11264
    JS_FLAGS="$JS_FLAGS -I/usr/local/include/js"
11265
    JS_FLAGS="$JS_FLAGS -I/opt/local/include/js"
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11266
11267
fi
11268
11269
11270
11271
# Check whether --with-js-lib was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11272
if test "${with_js_lib+set}" = set; then :
11273
  withval=$with_js_lib;
11274
    JS_LIB_DIR=$withval
11275
    JS_LIB_FLAGS="-L$withval"
11276
11277
else
11278
11279
    JS_LIB_DIR=
11280
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11281
fi
11282
11283
1.2.1 by Noah Slater
Import upstream version 0.9.0
11284
11285
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11286
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11287
1.2.1 by Noah Slater
Import upstream version 0.9.0
11288
LIB_FLAGS="$JS_LIB_FLAGS -L/usr/local/lib -L/opt/local/lib"
11289
LIBS="$LIB_FLAGS $LIBS"
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11290
11291
case "$(uname -s)" in
11292
  CYGWIN*)
11293
    FLAGS="$LIB_FLAGS $ERLANG_FLAGS $JS_FLAGS -DXP_WIN $FLAGS"
11294
    CPPFLAGS="$FLAGS $CPPFLAGS"
11295
    LDFLAGS="$FLAGS $LDFLAGS"
11296
    IS_WINDOWS="TRUE"
11297
    # The erlang cc.sh/ld.sh scripts will convert a -O option
11298
    # into the same optimization flags erlang itself uses.
11299
    CFLAGS="-O2"
11300
    LTCFLAGS="$CFLAGS"
11301
    ;;
11302
  *)
11303
    # XP_UNIX required for jsapi.h and has been tested to work on Linux and Darwin.
11304
    FLAGS="$LIB_FLAGS $ERLANG_FLAGS $JS_FLAGS -DXP_UNIX $FLAGS"
11305
    CPPFLAGS="$FLAGS $CPPFLAGS"
11306
    # manually linking libm is requred for FreeBSD 7.0
11307
    LDFLAGS="$FLAGS -lm $LDFLAGS"
11308
    ;;
11309
esac
11310
11311
 if test x$IS_WINDOWS = xTRUE; then
11312
  WINDOWS_TRUE=
11313
  WINDOWS_FALSE='#'
11314
else
11315
  WINDOWS_TRUE='#'
11316
  WINDOWS_FALSE=
11317
fi
11318
11319
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JS_NewContext in -lmozjs" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11321
$as_echo_n "checking for JS_NewContext in -lmozjs... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11322
if test "${ac_cv_lib_mozjs_JS_NewContext+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11323
  $as_echo_n "(cached) " >&6
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11324
else
11325
  ac_check_lib_save_LIBS=$LIBS
11326
LIBS="-lmozjs  $LIBS"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11327
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11328
/* end confdefs.h.  */
11329
11330
/* Override any GCC internal prototype to avoid an error.
11331
   Use char because int might match the return type of a GCC
11332
   builtin and then its argument prototype would still apply.  */
11333
#ifdef __cplusplus
11334
extern "C"
11335
#endif
11336
char JS_NewContext ();
11337
int
11338
main ()
11339
{
11340
return JS_NewContext ();
11341
  ;
11342
  return 0;
11343
}
11344
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11345
if ac_fn_c_try_link "$LINENO"; then :
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11346
  ac_cv_lib_mozjs_JS_NewContext=yes
11347
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11348
  ac_cv_lib_mozjs_JS_NewContext=no
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11349
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11350
rm -f core conftest.err conftest.$ac_objext \
11351
    conftest$ac_exeext conftest.$ac_ext
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11352
LIBS=$ac_check_lib_save_LIBS
11353
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mozjs_JS_NewContext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11355
$as_echo "$ac_cv_lib_mozjs_JS_NewContext" >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11356
if test "x$ac_cv_lib_mozjs_JS_NewContext" = x""yes; then :
11357
  JS_LIB_BASE=mozjs
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11358
else
11359
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11360
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JS_NewContext in -ljs" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11361
$as_echo_n "checking for JS_NewContext in -ljs... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11362
if test "${ac_cv_lib_js_JS_NewContext+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11363
  $as_echo_n "(cached) " >&6
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11364
else
11365
  ac_check_lib_save_LIBS=$LIBS
11366
LIBS="-ljs  $LIBS"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11367
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11368
/* end confdefs.h.  */
11369
11370
/* Override any GCC internal prototype to avoid an error.
11371
   Use char because int might match the return type of a GCC
11372
   builtin and then its argument prototype would still apply.  */
11373
#ifdef __cplusplus
11374
extern "C"
11375
#endif
11376
char JS_NewContext ();
11377
int
11378
main ()
11379
{
11380
return JS_NewContext ();
11381
  ;
11382
  return 0;
11383
}
11384
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11385
if ac_fn_c_try_link "$LINENO"; then :
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11386
  ac_cv_lib_js_JS_NewContext=yes
11387
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11388
  ac_cv_lib_js_JS_NewContext=no
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11389
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11390
rm -f core conftest.err conftest.$ac_objext \
11391
    conftest$ac_exeext conftest.$ac_ext
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11392
LIBS=$ac_check_lib_save_LIBS
11393
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_js_JS_NewContext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11395
$as_echo "$ac_cv_lib_js_JS_NewContext" >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11396
if test "x$ac_cv_lib_js_JS_NewContext" = x""yes; then :
11397
  JS_LIB_BASE=js
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
11398
else
11399
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11400
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JS_NewContext in -ljs3250" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11401
$as_echo_n "checking for JS_NewContext in -ljs3250... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11402
if test "${ac_cv_lib_js3250_JS_NewContext+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11403
  $as_echo_n "(cached) " >&6
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11404
else
11405
  ac_check_lib_save_LIBS=$LIBS
11406
LIBS="-ljs3250  $LIBS"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11408
/* end confdefs.h.  */
11409
11410
/* Override any GCC internal prototype to avoid an error.
11411
   Use char because int might match the return type of a GCC
11412
   builtin and then its argument prototype would still apply.  */
11413
#ifdef __cplusplus
11414
extern "C"
11415
#endif
11416
char JS_NewContext ();
11417
int
11418
main ()
11419
{
11420
return JS_NewContext ();
11421
  ;
11422
  return 0;
11423
}
11424
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11425
if ac_fn_c_try_link "$LINENO"; then :
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11426
  ac_cv_lib_js3250_JS_NewContext=yes
11427
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11428
  ac_cv_lib_js3250_JS_NewContext=no
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11429
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11430
rm -f core conftest.err conftest.$ac_objext \
11431
    conftest$ac_exeext conftest.$ac_ext
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11432
LIBS=$ac_check_lib_save_LIBS
11433
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_js3250_JS_NewContext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11435
$as_echo "$ac_cv_lib_js3250_JS_NewContext" >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11436
if test "x$ac_cv_lib_js3250_JS_NewContext" = x""yes; then :
11437
  JS_LIB_BASE=js3250
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11438
else
11439
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11440
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JS_NewContext in -ljs32" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11441
$as_echo_n "checking for JS_NewContext in -ljs32... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11442
if test "${ac_cv_lib_js32_JS_NewContext+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11443
  $as_echo_n "(cached) " >&6
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11444
else
11445
  ac_check_lib_save_LIBS=$LIBS
11446
LIBS="-ljs32  $LIBS"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11448
/* end confdefs.h.  */
11449
11450
/* Override any GCC internal prototype to avoid an error.
11451
   Use char because int might match the return type of a GCC
11452
   builtin and then its argument prototype would still apply.  */
11453
#ifdef __cplusplus
11454
extern "C"
11455
#endif
11456
char JS_NewContext ();
11457
int
11458
main ()
11459
{
11460
return JS_NewContext ();
11461
  ;
11462
  return 0;
11463
}
11464
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11465
if ac_fn_c_try_link "$LINENO"; then :
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11466
  ac_cv_lib_js32_JS_NewContext=yes
11467
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11468
  ac_cv_lib_js32_JS_NewContext=no
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11469
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11470
rm -f core conftest.err conftest.$ac_objext \
11471
    conftest$ac_exeext conftest.$ac_ext
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11472
LIBS=$ac_check_lib_save_LIBS
11473
fi
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_js32_JS_NewContext" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11475
$as_echo "$ac_cv_lib_js32_JS_NewContext" >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11476
if test "x$ac_cv_lib_js32_JS_NewContext" = x""yes; then :
11477
  JS_LIB_BASE=js32
11478
else
11479
11480
                as_fn_error "Could not find the js library.
11481
11482
Is the Mozilla SpiderMonkey library installed?" "$LINENO" 5
11483
fi
11484
11485
fi
11486
11487
fi
11488
11489
fi
11490
11491
11492
11493
11494
if test x${IS_WINDOWS} = xTRUE; then
11495
    if test -f "$JS_LIB_DIR/$JS_LIB_BASE.dll"; then
11496
        # seamonkey 1.7- build layout on Windows
11497
        JS_LIB_BINARY="$JS_LIB_DIR/$JS_LIB_BASE.dll"
11498
    else
11499
        # seamonkey 1.8+ build layout on Windows
11500
        if test -f "$JS_LIB_DIR/../bin/$JS_LIB_BASE.dll"; then
11501
            JS_LIB_BINARY="$JS_LIB_DIR/../bin/$JS_LIB_BASE.dll"
11502
        else
11503
        as_fn_error "Could not find $JS_LIB_BASE.dll." "$LINENO" 5
11504
        fi
11505
    fi
11506
11507
11508
    # On windows we need to know the path to the openssl binaries.
11509
11510
# Check whether --with-openssl-bin-dir was given.
11511
if test "${with_openssl_bin_dir+set}" = set; then :
11512
  withval=$with_openssl_bin_dir;
11513
        openssl_bin_dir=`cygpath -m "$withval"`
11514
11515
11516
fi
11517
11518
11519
    # Windows uses Inno setup - look for its compiler.
11520
    # Extract the first word of "iscc", so it can be a program name with args.
11521
set dummy iscc; ac_word=$2
11522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523
$as_echo_n "checking for $ac_word... " >&6; }
11524
if test "${ac_cv_path_INNO_COMPILER_EXECUTABLE+set}" = set; then :
11525
  $as_echo_n "(cached) " >&6
11526
else
11527
  case $INNO_COMPILER_EXECUTABLE in
11528
  [\\/]* | ?:[\\/]*)
11529
  ac_cv_path_INNO_COMPILER_EXECUTABLE="$INNO_COMPILER_EXECUTABLE" # Let the user override the test with a path.
11530
  ;;
11531
  *)
11532
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533
for as_dir in $PATH
11534
do
11535
  IFS=$as_save_IFS
11536
  test -z "$as_dir" && as_dir=.
11537
    for ac_exec_ext in '' $ac_executable_extensions; do
11538
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11539
    ac_cv_path_INNO_COMPILER_EXECUTABLE="$as_dir/$ac_word$ac_exec_ext"
11540
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541
    break 2
11542
  fi
11543
done
11544
  done
11545
IFS=$as_save_IFS
11546
11547
  ;;
11548
esac
11549
fi
11550
INNO_COMPILER_EXECUTABLE=$ac_cv_path_INNO_COMPILER_EXECUTABLE
11551
if test -n "$INNO_COMPILER_EXECUTABLE"; then
11552
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INNO_COMPILER_EXECUTABLE" >&5
11553
$as_echo "$INNO_COMPILER_EXECUTABLE" >&6; }
11554
else
11555
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556
$as_echo "no" >&6; }
11557
fi
11558
11559
11560
    if test x${INNO_COMPILER_EXECUTABLE} = x; then
11561
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will be unable to build the Windows installer." >&5
11562
$as_echo "$as_me: WARNING: You will be unable to build the Windows installer." >&2;}
11563
    fi
11564
11565
    # We need the msvc redistributables for this platform too
11566
    # (in theory we could just install the assembly locally - but
11567
    # there are at least 4 directories with binaries, meaning 4 copies;
11568
    # so using the redist .exe means it ends up installed globally...)
11569
11570
# Check whether --with-msvc-redist-dir was given.
11571
if test "${with_msvc_redist_dir+set}" = set; then :
11572
  withval=$with_msvc_redist_dir;
11573
        msvc_redist_dir=`cygpath -m "$withval"`
11574
        msvc_redist_name="vcredist_x86.exe"
11575
11576
11577
11578
fi
11579
11580
    if test ! -f ${msvc_redist_dir}/${msvc_redist_name}; then
11581
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The MSVC redistributable seems to be missing; expect the installer to fail." >&5
11582
$as_echo "$as_me: WARNING: The MSVC redistributable seems to be missing; expect the installer to fail." >&2;}
11583
    fi
11584
fi
11585
11586
JSLIB=-l$JS_LIB_BASE
11587
11588
ac_fn_c_check_header_mongrel "$LINENO" "jsapi.h" "ac_cv_header_jsapi_h" "$ac_includes_default"
11589
if test "x$ac_cv_header_jsapi_h" = x""yes; then :
11590
11591
else
11592
11593
    ac_fn_c_check_header_mongrel "$LINENO" "js/jsapi.h" "ac_cv_header_js_jsapi_h" "$ac_includes_default"
11594
if test "x$ac_cv_header_js_jsapi_h" = x""yes; then :
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11595
11596
        CPPFLAGS="$CPPFLAGS -I$JS_INCLUDE/js"
11597
11598
else
11599
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11600
            as_fn_error "Could not find the jsapi header.
11601
11602
Are the Mozilla SpiderMonkey headers installed?" "$LINENO" 5
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11603
11604
fi
11605
11606
11607
fi
11608
11609
11610
1.2.4 by Elliot Murphy
Import upstream version 0.10.0~svn813472
11611
11612
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11613
ac_ext=c
11614
ac_cpp='$CPP $CPPFLAGS'
11615
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11616
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11617
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11618
11619
OLD_CFLAGS="$CFLAGS"
11620
CFLAGS="-Werror-implicit-function-declaration"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11621
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11622
/* end confdefs.h.  */
11623
#include <jsapi.h>
11624
int
11625
main ()
11626
{
11627
JS_SetOperationCallback(0, 0);
11628
11629
  ;
11630
  return 0;
11631
}
11632
_ACEOF
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11633
if ac_fn_c_try_compile "$LINENO"; then :
11634
11635
$as_echo "#define USE_JS_SETOPCB /**/" >>confdefs.h
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11636
11637
11638
fi
11639
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640
CFLAGS="$OLD_CFLAGS"
11641
ac_ext=c
11642
ac_cpp='$CPP $CPPFLAGS'
11643
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11644
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11645
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11646
11647
11648
11649
# Check whether --with-win32-icu-binaries was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11650
if test "${with_win32_icu_binaries+set}" = set; then :
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11651
  withval=$with_win32_icu_binaries;
11652
    ICU_CONFIG="" # supposed to be a command to query options...
11653
    ICU_LOCAL_CFLAGS="-I$withval/include"
11654
    ICU_LOCAL_LDFLAGS="-L$withval/lib"
11655
    ICU_LOCAL_BIN=$withval/bin
11656
11657
else
1 by Noah Slater
Import upstream version 0.7.3~svn684
11658
11659
11660
  succeeded=no
11661
11662
  if test -z "$ICU_CONFIG"; then
11663
    # Extract the first word of "icu-config", so it can be a program name with args.
11664
set dummy icu-config; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11666
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11667
if test "${ac_cv_path_ICU_CONFIG+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11668
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
11669
else
11670
  case $ICU_CONFIG in
11671
  [\\/]* | ?:[\\/]*)
11672
  ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
11673
  ;;
11674
  *)
11675
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676
for as_dir in $PATH
11677
do
11678
  IFS=$as_save_IFS
11679
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11680
    for ac_exec_ext in '' $ac_executable_extensions; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
11681
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682
    ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11683
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
11684
    break 2
11685
  fi
11686
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11687
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
11688
IFS=$as_save_IFS
11689
11690
  test -z "$ac_cv_path_ICU_CONFIG" && ac_cv_path_ICU_CONFIG="no"
11691
  ;;
11692
esac
11693
fi
11694
ICU_CONFIG=$ac_cv_path_ICU_CONFIG
11695
if test -n "$ICU_CONFIG"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11696
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11697
$as_echo "$ICU_CONFIG" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11698
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11699
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11700
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11701
fi
11702
11703
11704
  fi
11705
11706
  if test "$ICU_CONFIG" = "no" ; then
11707
    echo "*** The icu-config script could not be found. Make sure it is"
11708
    echo "*** in your path, and that taglib is properly installed."
11709
    echo "*** Or see http://ibm.com/software/globalization/icu/"
11710
  else
11711
    ICU_VERSION=`$ICU_CONFIG --version`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11712
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU >= 3" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11713
$as_echo_n "checking for ICU >= 3... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11714
        VERSION_CHECK=`expr $ICU_VERSION \>\= 3`
11715
        if test "$VERSION_CHECK" = "1" ; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11716
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11717
$as_echo "yes" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11718
            succeeded=yes
11719
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11720
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking ICU_CFLAGS" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11721
$as_echo_n "checking ICU_CFLAGS... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11722
            ICU_CFLAGS=`$ICU_CONFIG --cflags`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11723
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CFLAGS" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11724
$as_echo "$ICU_CFLAGS" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11725
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11726
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking ICU_CXXFLAGS" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11727
$as_echo_n "checking ICU_CXXFLAGS... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11728
            ICU_CXXFLAGS=`$ICU_CONFIG --cxxflags`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11729
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CXXFLAGS" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11730
$as_echo "$ICU_CXXFLAGS" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11731
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11732
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking ICU_LIBS" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11733
$as_echo_n "checking ICU_LIBS... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11734
            ICU_LIBS=`$ICU_CONFIG --ldflags`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11735
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_LIBS" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11736
$as_echo "$ICU_LIBS" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11737
        else
11738
            ICU_CFLAGS=""
11739
            ICU_CXXFLAGS=""
11740
            ICU_LIBS=""
11741
            ## If we have a custom action on failure, don't print errors, but
11742
            ## do set a variable so people can do so.
11743
            echo "can't find ICU >= 3"
11744
        fi
11745
11746
11747
11748
11749
  fi
11750
11751
  if test $succeeded = yes; then
11752
     :
11753
  else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11754
     as_fn_error "Library requirements (ICU) not met." "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
11755
  fi
11756
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11757
    ICU_LOCAL_CFLAGS=`$ICU_CONFIG --cppflags-searchpath`
11758
    ICU_LOCAL_LDFLAGS=`$ICU_CONFIG --ldflags-searchpath`
11759
    ICU_LOCAL_BIN=
11760
11761
fi
11762
11763
11764
11765
11766
11767
11768
11769
11770
# Check whether --with-win32-curl was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11771
if test "${with_win32_curl+set}" = set; then :
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11772
  withval=$with_win32_curl;
11773
    # default build on windows is a static lib, and that's what we want too
11774
    CURL_CFLAGS="-I$withval/include -DCURL_STATICLIB"
11775
    CURL_LIBS="$withval/lib/libcurl"
11776
    CURL_LDFLAGS="-l$CURL_LIBS -lWs2_32 -lkernel32 -luser32 -ladvapi32 -lWldap32"
11777
11778
else
1 by Noah Slater
Import upstream version 0.7.3~svn684
11779
1.2.1 by Noah Slater
Import upstream version 0.9.0
11780
11781
  succeeded=no
11782
11783
  if test -z "$CURL_CONFIG"; then
11784
    # Extract the first word of "curl-config", so it can be a program name with args.
11785
set dummy curl-config; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11787
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11788
if test "${ac_cv_path_CURL_CONFIG+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11789
  $as_echo_n "(cached) " >&6
1.2.1 by Noah Slater
Import upstream version 0.9.0
11790
else
11791
  case $CURL_CONFIG in
11792
  [\\/]* | ?:[\\/]*)
11793
  ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
11794
  ;;
11795
  *)
11796
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797
for as_dir in $PATH
11798
do
11799
  IFS=$as_save_IFS
11800
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11801
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.1 by Noah Slater
Import upstream version 0.9.0
11802
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11803
    ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11804
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.1 by Noah Slater
Import upstream version 0.9.0
11805
    break 2
11806
  fi
11807
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11808
  done
1.2.1 by Noah Slater
Import upstream version 0.9.0
11809
IFS=$as_save_IFS
11810
11811
  test -z "$ac_cv_path_CURL_CONFIG" && ac_cv_path_CURL_CONFIG="no"
11812
  ;;
11813
esac
11814
fi
11815
CURL_CONFIG=$ac_cv_path_CURL_CONFIG
11816
if test -n "$CURL_CONFIG"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11818
$as_echo "$CURL_CONFIG" >&6; }
1.2.1 by Noah Slater
Import upstream version 0.9.0
11819
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11820
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11821
$as_echo "no" >&6; }
1.2.1 by Noah Slater
Import upstream version 0.9.0
11822
fi
11823
11824
11825
  fi
11826
11827
  if test "$CURL_CONFIG" = "no" ; then
11828
    echo "*** The curl-config script could not be found. Make sure it is"
11829
    echo "*** in your path, and that curl is properly installed."
11830
    echo "*** Or see http://curl.haxx.se/"
11831
  else
11832
        CURL_VERSION=`$CURL_CONFIG --version | cut -d" " -f2`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11833
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl >= 7.18.0" >&5
11834
$as_echo_n "checking for curl >= 7.18.0... " >&6; }
11835
        VERSION_CHECK=`expr $CURL_VERSION \>\= 7.18.0`
1.2.1 by Noah Slater
Import upstream version 0.9.0
11836
        if test "$VERSION_CHECK" = "1" ; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11837
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11838
$as_echo "yes" >&6; }
1.2.1 by Noah Slater
Import upstream version 0.9.0
11839
            succeeded=yes
11840
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11841
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking CURL_CFLAGS" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11842
$as_echo_n "checking CURL_CFLAGS... " >&6; }
1.2.1 by Noah Slater
Import upstream version 0.9.0
11843
            CURL_CFLAGS=`$CURL_CONFIG --cflags`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11844
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CFLAGS" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11845
$as_echo "$CURL_CFLAGS" >&6; }
1.2.1 by Noah Slater
Import upstream version 0.9.0
11846
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11847
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking CURL_LIBS" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11848
$as_echo_n "checking CURL_LIBS... " >&6; }
1.2.1 by Noah Slater
Import upstream version 0.9.0
11849
            CURL_LIBS=`$CURL_CONFIG --libs`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11850
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_LIBS" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11851
$as_echo "$CURL_LIBS" >&6; }
1.2.1 by Noah Slater
Import upstream version 0.9.0
11852
        else
11853
            CURL_CFLAGS=""
11854
            CURL_LIBS=""
11855
            ## If we have a custom action on failure, don't print errors, but
11856
            ## do set a variable so people can do so.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11857
            echo "can't find curl >= 7.18.0"
1.2.1 by Noah Slater
Import upstream version 0.9.0
11858
        fi
11859
11860
11861
11862
  fi
11863
11864
  if test $succeeded = yes; then
11865
     :
11866
  else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11867
     as_fn_error "Library requirements (curl) not met." "$LINENO" 5
1.2.1 by Noah Slater
Import upstream version 0.9.0
11868
  fi
11869
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11870
    CURL_LDFLAGS=-lcurl
11871
11872
fi
11873
11874
11875
1.2.1 by Noah Slater
Import upstream version 0.9.0
11876
11877
11878
11879
case "$(uname -s)" in
11880
  Linux)
11881
    LIBS="$LIBS -lcrypt"
11882
    CPPFLAGS="-D_XOPEN_SOURCE $CPPFLAGS"
11883
    ;;
11884
  FreeBSD)
11885
    LIBS="$LIBS -lcrypt"
11886
    ;;
11887
  OpenBSD)
11888
    LIBS="$LIBS -lcrypto"
11889
  ;;
11890
esac
11891
1 by Noah Slater
Import upstream version 0.7.3~svn684
11892
# Extract the first word of "erl", so it can be a program name with args.
11893
set dummy erl; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11895
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11896
if test "${ac_cv_path_ERL+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11897
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
11898
else
11899
  case $ERL in
11900
  [\\/]* | ?:[\\/]*)
11901
  ac_cv_path_ERL="$ERL" # Let the user override the test with a path.
11902
  ;;
11903
  *)
11904
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905
for as_dir in $PATH
11906
do
11907
  IFS=$as_save_IFS
11908
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11909
    for ac_exec_ext in '' $ac_executable_extensions; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
11910
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11911
    ac_cv_path_ERL="$as_dir/$ac_word$ac_exec_ext"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11912
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
11913
    break 2
11914
  fi
11915
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11916
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
11917
IFS=$as_save_IFS
11918
11919
  ;;
11920
esac
11921
fi
11922
ERL=$ac_cv_path_ERL
11923
if test -n "$ERL"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERL" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11925
$as_echo "$ERL" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11926
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11928
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11929
fi
11930
11931
11932
11933
if test x${ERL} = x; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11934
    as_fn_error "Could not find the \`erl' executable. Is Erlang installed?" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
11935
fi
11936
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11937
erlang_version_error="The installed Erlang version is less than 5.6.5 (R12B05)."
1.1.2 by Noah Slater
Import upstream version 0.8.0
11938
11939
version="`${ERL} -version 2>&1 | ${SED} "s/[^0-9]/ /g"`"
11940
11941
if test `echo $version | ${AWK} "{print \\$1}"` -lt 5; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11942
    as_fn_error "$erlang_version_error" "$LINENO" 5
1.1.2 by Noah Slater
Import upstream version 0.8.0
11943
fi
11944
1.2.1 by Noah Slater
Import upstream version 0.9.0
11945
if test `echo $version | ${AWK} "{print \\$2}"` -lt 6; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11946
    as_fn_error "$erlang_version_error" "$LINENO" 5
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11947
fi
11948
11949
if test `echo $version | ${AWK} "{print \\$2}"` -eq 6; then
11950
    if test `echo $version | ${AWK} "{print \\$3}"` -lt 5; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11951
        as_fn_error "$erlang_version_error" "$LINENO" 5
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
11952
    fi
1.1.2 by Noah Slater
Import upstream version 0.8.0
11953
fi
11954
1 by Noah Slater
Import upstream version 0.7.3~svn684
11955
# Extract the first word of "erlc", so it can be a program name with args.
11956
set dummy erlc; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11958
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11959
if test "${ac_cv_path_ERLC+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11960
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
11961
else
11962
  case $ERLC in
11963
  [\\/]* | ?:[\\/]*)
11964
  ac_cv_path_ERLC="$ERLC" # Let the user override the test with a path.
11965
  ;;
11966
  *)
11967
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968
for as_dir in $PATH
11969
do
11970
  IFS=$as_save_IFS
11971
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11972
    for ac_exec_ext in '' $ac_executable_extensions; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
11973
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11974
    ac_cv_path_ERLC="$as_dir/$ac_word$ac_exec_ext"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11975
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
11976
    break 2
11977
  fi
11978
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11979
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
11980
IFS=$as_save_IFS
11981
11982
  ;;
11983
esac
11984
fi
11985
ERLC=$ac_cv_path_ERLC
11986
if test -n "$ERLC"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERLC" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11988
$as_echo "$ERLC" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11989
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11990
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
11991
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
11992
fi
11993
11994
11995
11996
if test x${ERLC} = x; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
11997
    as_fn_error "Could not find the \`erlc' executable. Is Erlang installed?" "$LINENO" 5
11998
fi
11999
12000
ac_fn_c_check_header_mongrel "$LINENO" "erl_driver.h" "ac_cv_header_erl_driver_h" "$ac_includes_default"
12001
if test "x$ac_cv_header_erl_driver_h" = x""yes; then :
12002
12003
else
12004
12005
    as_fn_error "Could not find the \`erl_driver.h' header.
12006
12007
Are the Erlang headers installed? Use the \`--with-erlang' option to specify the
12008
path to the Erlang include directory." "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
12009
fi
12010
12011
12012
12013
# Extract the first word of "help2man", so it can be a program name with args.
12014
set dummy help2man; ac_word=$2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12016
$as_echo_n "checking for $ac_word... " >&6; }
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12017
if test "${ac_cv_path_HELP2MAN_EXECUTABLE+set}" = set; then :
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12018
  $as_echo_n "(cached) " >&6
1 by Noah Slater
Import upstream version 0.7.3~svn684
12019
else
12020
  case $HELP2MAN_EXECUTABLE in
12021
  [\\/]* | ?:[\\/]*)
12022
  ac_cv_path_HELP2MAN_EXECUTABLE="$HELP2MAN_EXECUTABLE" # Let the user override the test with a path.
12023
  ;;
12024
  *)
12025
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026
for as_dir in $PATH
12027
do
12028
  IFS=$as_save_IFS
12029
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12030
    for ac_exec_ext in '' $ac_executable_extensions; do
1 by Noah Slater
Import upstream version 0.7.3~svn684
12031
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12032
    ac_cv_path_HELP2MAN_EXECUTABLE="$as_dir/$ac_word$ac_exec_ext"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12033
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Noah Slater
Import upstream version 0.7.3~svn684
12034
    break 2
12035
  fi
12036
done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12037
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
12038
IFS=$as_save_IFS
12039
12040
  ;;
12041
esac
12042
fi
12043
HELP2MAN_EXECUTABLE=$ac_cv_path_HELP2MAN_EXECUTABLE
12044
if test -n "$HELP2MAN_EXECUTABLE"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN_EXECUTABLE" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12046
$as_echo "$HELP2MAN_EXECUTABLE" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
12047
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12048
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12049
$as_echo "no" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
12050
fi
12051
12052
12053
if test x${HELP2MAN_EXECUTABLE} = x; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12054
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will be unable to regenerate any man pages." >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12055
$as_echo "$as_me: WARNING: You will be unable to regenerate any man pages." >&2;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
12056
fi
12057
12058
use_init=yes
12059
use_launchd=yes
12060
12061
# Check whether --enable-init was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12062
if test "${enable_init+set}" = set; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
12063
  enableval=$enable_init;
12064
    use_init=$enableval
12065
12066
fi
12067
12068
12069
# Check whether --enable-launchd was given.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12070
if test "${enable_launchd+set}" = set; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
12071
  enableval=$enable_launchd;
12072
    use_launchd=$enableval
12073
12074
fi
12075
12076
12077
init_enabled=false
12078
launchd_enabled=false
12079
12080
if test "$use_init" = "yes"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12081
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of init directory" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12082
$as_echo_n "checking location of init directory... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
12083
   if test -d /etc/rc.d; then
12084
       init_enabled=true
12085
       initdir='${sysconfdir}/rc.d'
12086
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12087
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${initdir}" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12088
$as_echo "${initdir}" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
12089
   else
12090
       if test -d /etc/init.d; then
12091
           init_enabled=true
12092
           initdir='${sysconfdir}/init.d'
12093
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12094
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${initdir}" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12095
$as_echo "${initdir}" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
12096
       else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12097
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12098
$as_echo "not found" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
12099
       fi
12100
    fi
12101
fi
12102
12103
if test "$use_launchd" = "yes"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12104
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of launchd directory" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12105
$as_echo_n "checking location of launchd directory... " >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
12106
    if test -d /Library/LaunchDaemons; then
12107
        init_enabled=false
12108
        launchd_enabled=true
12109
        launchddir='${prefix}/Library/LaunchDaemons'
12110
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12111
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${launchddir}" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12112
$as_echo "${launchddir}" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
12113
    else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12114
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12115
$as_echo "not found" >&6; }
1 by Noah Slater
Import upstream version 0.7.3~svn684
12116
    fi
12117
fi
12118
12119
12120
12121
12122
12123
if test -n "$HELP2MAN_EXECUTABLE"; then
12124
    help2man_enabled=true
12125
else
12126
    if test -f "$srcdir/bin/couchdb.1" -a -f "$srcdir/bin/couchjs.1"; then
12127
        help2man_enabled=true
12128
    else
12129
        help2man_enabled=false
12130
    fi
12131
fi
12132
1.1.2 by Noah Slater
Import upstream version 0.8.0
12133
 if test x${init_enabled} = xtrue; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
12134
  INIT_TRUE=
12135
  INIT_FALSE='#'
12136
else
12137
  INIT_TRUE='#'
12138
  INIT_FALSE=
12139
fi
12140
1.1.2 by Noah Slater
Import upstream version 0.8.0
12141
 if test x${launchd_enabled} = xtrue; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
12142
  LAUNCHD_TRUE=
12143
  LAUNCHD_FALSE='#'
12144
else
12145
  LAUNCHD_TRUE='#'
12146
  LAUNCHD_FALSE=
12147
fi
12148
1.1.2 by Noah Slater
Import upstream version 0.8.0
12149
 if test x${help2man_enabled} = xtrue; then
1 by Noah Slater
Import upstream version 0.7.3~svn684
12150
  HELP2MAN_TRUE=
12151
  HELP2MAN_FALSE='#'
12152
else
12153
  HELP2MAN_TRUE='#'
12154
  HELP2MAN_FALSE=
12155
fi
12156
12157
1.2.1 by Noah Slater
Import upstream version 0.9.0
12158
package_author_name="The Apache Software Foundation"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12159
1.2.1 by Noah Slater
Import upstream version 0.9.0
12160
package_author_address="dev@couchdb.apache.org"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12161
12162
package_identifier="couchdb"
12163
1.1.2 by Noah Slater
Import upstream version 0.8.0
12164
package_tarname="apache-couchdb"
12165
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
12166
package_name="Apache CouchDB"
12167
12168
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12169
version="0.11.0"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12170
12171
version_major="0"
12172
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12173
version_minor="11"
1.1.2 by Noah Slater
Import upstream version 0.8.0
12174
1.2.1 by Noah Slater
Import upstream version 0.9.0
12175
version_revision="0"
1.1.2 by Noah Slater
Import upstream version 0.8.0
12176
1.2.6 by Elliot Murphy
Import upstream version 0.10.0
12177
version_stage=""
1.1.2 by Noah Slater
Import upstream version 0.8.0
12178
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12179
version_release=""
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
12180
12181
12182
bug_uri="https://issues.apache.org/jira/browse/COUCHDB"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12183
12184
1.1.2 by Noah Slater
Import upstream version 0.8.0
12185
localconfdir=${sysconfdir}/${package_identifier}
12186
12187
localdatadir=${datadir}/${package_identifier}
12188
12189
localdocdir=${datadir}/doc/${package_identifier}
12190
12191
locallibdir=${libdir}/${package_identifier}
12192
12193
localstatelibdir=${localstatedir}/lib/${package_identifier}
12194
12195
localstatelogdir=${localstatedir}/log/${package_identifier}
12196
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
12197
localstaterundir=${localstatedir}/run/${package_identifier}
12198
12199
12200
# On Windows we install directly into our erlang distribution.
12201
if test x${IS_WINDOWS} = xTRUE; then
12202
    locallibbindir=${prefix}/bin
12203
12204
    localerlanglibdir=${libdir}
12205
12206
else
12207
    locallibbindir=${locallibdir}/bin
12208
12209
    localerlanglibdir=${locallibdir}/erlang/lib
12210
12211
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
12212
1.2.1 by Noah Slater
Import upstream version 0.9.0
12213
# fix for older autotools that don't define "abs_top_YYY" by default
12214
12215
12216
1 by Noah Slater
Import upstream version 0.7.3~svn684
12217
12218
12219
ac_config_files="$ac_config_files Makefile"
12220
12221
ac_config_files="$ac_config_files bin/couchjs.tpl"
12222
12223
ac_config_files="$ac_config_files bin/couchdb.tpl"
12224
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
12225
ac_config_files="$ac_config_files bin/couchdb.bat.tpl"
12226
1 by Noah Slater
Import upstream version 0.7.3~svn684
12227
ac_config_files="$ac_config_files bin/Makefile"
12228
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
12229
ac_config_files="$ac_config_files etc/couchdb/Makefile"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12230
1.2.1 by Noah Slater
Import upstream version 0.9.0
12231
ac_config_files="$ac_config_files etc/couchdb/default.ini.tpl"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12232
12233
ac_config_files="$ac_config_files etc/default/Makefile"
12234
12235
ac_config_files="$ac_config_files etc/init/couchdb.tpl"
12236
12237
ac_config_files="$ac_config_files etc/init/Makefile"
12238
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
12239
ac_config_files="$ac_config_files etc/launchd/org.apache.couchdb.plist.tpl"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12240
12241
ac_config_files="$ac_config_files etc/launchd/Makefile"
12242
12243
ac_config_files="$ac_config_files etc/logrotate.d/couchdb.tpl"
12244
12245
ac_config_files="$ac_config_files etc/logrotate.d/Makefile"
12246
12247
ac_config_files="$ac_config_files etc/Makefile"
12248
12249
ac_config_files="$ac_config_files share/Makefile"
12250
1.2.6 by Elliot Murphy
Import upstream version 0.10.0
12251
ac_config_files="$ac_config_files src/Makefile"
12252
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
12253
ac_config_files="$ac_config_files src/couchdb/couch.app.tpl"
12254
12255
ac_config_files="$ac_config_files src/couchdb/Makefile"
12256
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
12257
ac_config_files="$ac_config_files src/couchdb/priv/Makefile"
12258
12259
ac_config_files="$ac_config_files src/erlang-oauth/Makefile"
12260
1.2.6 by Elliot Murphy
Import upstream version 0.10.0
12261
ac_config_files="$ac_config_files src/etap/Makefile"
12262
1.2.1 by Noah Slater
Import upstream version 0.9.0
12263
ac_config_files="$ac_config_files src/ibrowse/Makefile"
12264
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
12265
ac_config_files="$ac_config_files src/mochiweb/Makefile"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12266
1.2.1 by Noah Slater
Import upstream version 0.9.0
12267
ac_config_files="$ac_config_files test/Makefile"
12268
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12269
ac_config_files="$ac_config_files test/bench/Makefile"
12270
12271
ac_config_files="$ac_config_files test/etap/Makefile"
12272
12273
ac_config_files="$ac_config_files test/etap/test_util.erl"
12274
12275
ac_config_files="$ac_config_files test/javascript/Makefile"
12276
12277
ac_config_files="$ac_config_files test/view_server/Makefile"
12278
1.2.1 by Noah Slater
Import upstream version 0.9.0
12279
ac_config_files="$ac_config_files utils/Makefile"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12280
12281
ac_config_files="$ac_config_files var/Makefile"
12282
12283
12284
cat >confcache <<\_ACEOF
12285
# This file is a shell script that caches the results of configure
12286
# tests run on this system so they can be shared between configure
12287
# scripts and configure runs, see configure's option --config-cache.
12288
# It is not useful on other systems.  If it contains results you don't
12289
# want to keep, you may remove or edit it.
12290
#
12291
# config.status only pays attention to the cache file if you give it
12292
# the --recheck option to rerun configure.
12293
#
12294
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12295
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12296
# following values.
12297
12298
_ACEOF
12299
12300
# The following way of writing the cache mishandles newlines in values,
12301
# but we know of no workaround that is simple, portable, and efficient.
12302
# So, we kill variables containing newlines.
12303
# Ultrix sh set writes to stderr and can't be redirected directly,
12304
# and sets the high bit in the cache file unless we assign to the vars.
12305
(
12306
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12307
    eval ac_val=\$$ac_var
12308
    case $ac_val in #(
12309
    *${as_nl}*)
12310
      case $ac_var in #(
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12311
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12312
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
12313
      esac
12314
      case $ac_var in #(
12315
      _ | IFS | as_nl) ;; #(
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12316
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12317
      *) { eval $ac_var=; unset $ac_var;} ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
12318
      esac ;;
12319
    esac
12320
  done
12321
12322
  (set) 2>&1 |
12323
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12324
    *${as_nl}ac_space=\ *)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12325
      # `set' does not quote correctly, so add quotes: double-quote
12326
      # substitution turns \\\\ into \\, and sed turns \\ into \.
1 by Noah Slater
Import upstream version 0.7.3~svn684
12327
      sed -n \
12328
	"s/'/'\\\\''/g;
12329
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12330
      ;; #(
12331
    *)
12332
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12333
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12334
      ;;
12335
    esac |
12336
    sort
12337
) |
12338
  sed '
12339
     /^ac_cv_env_/b end
12340
     t clear
12341
     :clear
12342
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12343
     t end
12344
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12345
     :end' >>confcache
12346
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12347
  if test -w "$cache_file"; then
12348
    test "x$cache_file" != "x/dev/null" &&
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12349
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12350
$as_echo "$as_me: updating cache $cache_file" >&6;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
12351
    cat confcache >$cache_file
12352
  else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12353
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12354
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
12355
  fi
12356
fi
12357
rm -f confcache
12358
12359
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12360
# Let make expand exec_prefix.
12361
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12362
12363
DEFS=-DHAVE_CONFIG_H
12364
12365
ac_libobjs=
12366
ac_ltlibobjs=
12367
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12368
  # 1. Remove the extension, and $U if already installed.
12369
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12370
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1 by Noah Slater
Import upstream version 0.7.3~svn684
12371
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12372
  #    will be set to the directory where LIBOBJS objects are built.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12373
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12374
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1 by Noah Slater
Import upstream version 0.7.3~svn684
12375
done
12376
LIBOBJS=$ac_libobjs
12377
12378
LTLIBOBJS=$ac_ltlibobjs
12379
12380
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12381
 if test -n "$EXEEXT"; then
12382
  am__EXEEXT_TRUE=
12383
  am__EXEEXT_FALSE='#'
12384
else
12385
  am__EXEEXT_TRUE='#'
12386
  am__EXEEXT_FALSE=
12387
fi
12388
1 by Noah Slater
Import upstream version 0.7.3~svn684
12389
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12390
  as_fn_error "conditional \"AMDEP\" was never defined.
12391
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12392
fi
12393
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12394
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12395
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12396
fi
12397
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12398
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12399
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
12400
fi
12401
if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12402
  as_fn_error "conditional \"WINDOWS\" was never defined.
12403
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
12404
fi
12405
if test -z "${INIT_TRUE}" && test -z "${INIT_FALSE}"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12406
  as_fn_error "conditional \"INIT\" was never defined.
12407
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
12408
fi
12409
if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12410
  as_fn_error "conditional \"LAUNCHD\" was never defined.
12411
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
12412
fi
12413
if test -z "${HELP2MAN_TRUE}" && test -z "${HELP2MAN_FALSE}"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12414
  as_fn_error "conditional \"HELP2MAN\" was never defined.
12415
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
12416
fi
12417
12418
: ${CONFIG_STATUS=./config.status}
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12419
ac_write_fail=0
1 by Noah Slater
Import upstream version 0.7.3~svn684
12420
ac_clean_files_save=$ac_clean_files
12421
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12422
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12423
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12424
as_write_fail=0
12425
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
12426
#! $SHELL
12427
# Generated by $as_me.
12428
# Run this file to recreate the current configuration.
12429
# Compiler output produced by configure, useful for debugging
12430
# configure, is in config.log if it exists.
12431
12432
debug=false
12433
ac_cs_recheck=false
12434
ac_cs_silent=false
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12435
1 by Noah Slater
Import upstream version 0.7.3~svn684
12436
SHELL=\${CONFIG_SHELL-$SHELL}
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12437
export SHELL
12438
_ASEOF
12439
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12440
## -------------------- ##
12441
## M4sh Initialization. ##
12442
## -------------------- ##
1 by Noah Slater
Import upstream version 0.7.3~svn684
12443
12444
# Be more Bourne compatible
12445
DUALCASE=1; export DUALCASE # for MKS sh
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12446
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1 by Noah Slater
Import upstream version 0.7.3~svn684
12447
  emulate sh
12448
  NULLCMD=:
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12449
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1 by Noah Slater
Import upstream version 0.7.3~svn684
12450
  # is contrary to our usage.  Disable this feature.
12451
  alias -g '${1+"$@"}'='"$@"'
12452
  setopt NO_GLOB_SUBST
12453
else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12454
  case `(set -o) 2>/dev/null` in #(
12455
  *posix*) :
12456
    set -o posix ;; #(
12457
  *) :
12458
     ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
12459
esac
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12460
fi
12461
12462
12463
as_nl='
12464
'
12465
export as_nl
12466
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12467
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12468
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12469
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12470
# Prefer a ksh shell builtin over an external printf program on Solaris,
12471
# but without wasting forks for bash or zsh.
12472
if test -z "$BASH_VERSION$ZSH_VERSION" \
12473
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12474
  as_echo='print -r --'
12475
  as_echo_n='print -rn --'
12476
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12477
  as_echo='printf %s\n'
12478
  as_echo_n='printf %s'
12479
else
12480
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12481
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12482
    as_echo_n='/usr/ucb/echo -n'
12483
  else
12484
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12485
    as_echo_n_body='eval
12486
      arg=$1;
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12487
      case $arg in #(
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12488
      *"$as_nl"*)
12489
	expr "X$arg" : "X\\(.*\\)$as_nl";
12490
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12491
      esac;
12492
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12493
    '
12494
    export as_echo_n_body
12495
    as_echo_n='sh -c $as_echo_n_body as_echo'
12496
  fi
12497
  export as_echo_body
12498
  as_echo='sh -c $as_echo_body as_echo'
12499
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
12500
12501
# The user is always right.
12502
if test "${PATH_SEPARATOR+set}" != set; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12503
  PATH_SEPARATOR=:
12504
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12505
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12506
      PATH_SEPARATOR=';'
12507
  }
1 by Noah Slater
Import upstream version 0.7.3~svn684
12508
fi
12509
12510
12511
# IFS
12512
# We need space, tab and new line, in precisely that order.  Quoting is
12513
# there to prevent editors from complaining about space-tab.
12514
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12515
# splitting by setting IFS to empty value.)
12516
IFS=" ""	$as_nl"
12517
12518
# Find who we are.  Look in the path if we contain no directory separator.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12519
case $0 in #((
1 by Noah Slater
Import upstream version 0.7.3~svn684
12520
  *[\\/]* ) as_myself=$0 ;;
12521
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522
for as_dir in $PATH
12523
do
12524
  IFS=$as_save_IFS
12525
  test -z "$as_dir" && as_dir=.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12526
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12527
  done
1 by Noah Slater
Import upstream version 0.7.3~svn684
12528
IFS=$as_save_IFS
12529
12530
     ;;
12531
esac
12532
# We did not find ourselves, most probably we were run as `sh COMMAND'
12533
# in which case we are not to be found in the path.
12534
if test "x$as_myself" = x; then
12535
  as_myself=$0
12536
fi
12537
if test ! -f "$as_myself"; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12538
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12539
  exit 1
1 by Noah Slater
Import upstream version 0.7.3~svn684
12540
fi
12541
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12542
# Unset variables that we do not need and which cause bugs (e.g. in
12543
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12544
# suppresses any "Segmentation fault" message there.  '((' could
12545
# trigger a bug in pdksh 5.2.14.
12546
for as_var in BASH_ENV ENV MAIL MAILPATH
12547
do eval test x\${$as_var+set} = xset \
12548
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1 by Noah Slater
Import upstream version 0.7.3~svn684
12549
done
12550
PS1='$ '
12551
PS2='> '
12552
PS4='+ '
12553
12554
# NLS nuisances.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12555
LC_ALL=C
12556
export LC_ALL
12557
LANGUAGE=C
12558
export LANGUAGE
12559
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12560
# CDPATH.
12561
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12562
12563
12564
# as_fn_error ERROR [LINENO LOG_FD]
12565
# ---------------------------------
12566
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12567
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12568
# script with status $?, using 1 if that was 0.
12569
as_fn_error ()
12570
{
12571
  as_status=$?; test $as_status -eq 0 && as_status=1
12572
  if test "$3"; then
12573
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12574
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12575
  fi
12576
  $as_echo "$as_me: error: $1" >&2
12577
  as_fn_exit $as_status
12578
} # as_fn_error
12579
12580
12581
# as_fn_set_status STATUS
12582
# -----------------------
12583
# Set $? to STATUS, without forking.
12584
as_fn_set_status ()
12585
{
12586
  return $1
12587
} # as_fn_set_status
12588
12589
# as_fn_exit STATUS
12590
# -----------------
12591
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12592
as_fn_exit ()
12593
{
12594
  set +e
12595
  as_fn_set_status $1
12596
  exit $1
12597
} # as_fn_exit
12598
12599
# as_fn_unset VAR
12600
# ---------------
12601
# Portably unset VAR.
12602
as_fn_unset ()
12603
{
12604
  { eval $1=; unset $1;}
12605
}
12606
as_unset=as_fn_unset
12607
# as_fn_append VAR VALUE
12608
# ----------------------
12609
# Append the text in VALUE to the end of the definition contained in VAR. Take
12610
# advantage of any shell optimizations that allow amortized linear growth over
12611
# repeated appends, instead of the typical quadratic growth present in naive
12612
# implementations.
12613
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12614
  eval 'as_fn_append ()
12615
  {
12616
    eval $1+=\$2
12617
  }'
12618
else
12619
  as_fn_append ()
12620
  {
12621
    eval $1=\$$1\$2
12622
  }
12623
fi # as_fn_append
12624
12625
# as_fn_arith ARG...
12626
# ------------------
12627
# Perform arithmetic evaluation on the ARGs, and store the result in the
12628
# global $as_val. Take advantage of shells that can avoid forks. The arguments
12629
# must be portable across $(()) and expr.
12630
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12631
  eval 'as_fn_arith ()
12632
  {
12633
    as_val=$(( $* ))
12634
  }'
12635
else
12636
  as_fn_arith ()
12637
  {
12638
    as_val=`expr "$@" || test $? -eq 1`
12639
  }
12640
fi # as_fn_arith
12641
12642
1 by Noah Slater
Import upstream version 0.7.3~svn684
12643
if expr a : '\(a\)' >/dev/null 2>&1 &&
12644
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12645
  as_expr=expr
12646
else
12647
  as_expr=false
12648
fi
12649
12650
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12651
  as_basename=basename
12652
else
12653
  as_basename=false
12654
fi
12655
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12656
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12657
  as_dirname=dirname
12658
else
12659
  as_dirname=false
12660
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
12661
12662
as_me=`$as_basename -- "$0" ||
12663
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12664
	 X"$0" : 'X\(//\)$' \| \
12665
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12666
$as_echo X/"$0" |
1 by Noah Slater
Import upstream version 0.7.3~svn684
12667
    sed '/^.*\/\([^/][^/]*\)\/*$/{
12668
	    s//\1/
12669
	    q
12670
	  }
12671
	  /^X\/\(\/\/\)$/{
12672
	    s//\1/
12673
	    q
12674
	  }
12675
	  /^X\/\(\/\).*/{
12676
	    s//\1/
12677
	    q
12678
	  }
12679
	  s/.*/./; q'`
12680
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12681
# Avoid depending upon Character Ranges.
12682
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12683
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12684
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12685
as_cr_digits='0123456789'
12686
as_cr_alnum=$as_cr_Letters$as_cr_digits
1 by Noah Slater
Import upstream version 0.7.3~svn684
12687
12688
ECHO_C= ECHO_N= ECHO_T=
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12689
case `echo -n x` in #(((((
1 by Noah Slater
Import upstream version 0.7.3~svn684
12690
-n*)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12691
  case `echo 'xy\c'` in
1 by Noah Slater
Import upstream version 0.7.3~svn684
12692
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12693
  xy)  ECHO_C='\c';;
12694
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12695
       ECHO_T='	';;
1 by Noah Slater
Import upstream version 0.7.3~svn684
12696
  esac;;
12697
*)
12698
  ECHO_N='-n';;
12699
esac
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
12700
1 by Noah Slater
Import upstream version 0.7.3~svn684
12701
rm -f conf$$ conf$$.exe conf$$.file
12702
if test -d conf$$.dir; then
12703
  rm -f conf$$.dir/conf$$.file
12704
else
12705
  rm -f conf$$.dir
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12706
  mkdir conf$$.dir 2>/dev/null
1 by Noah Slater
Import upstream version 0.7.3~svn684
12707
fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12708
if (echo >conf$$.file) 2>/dev/null; then
12709
  if ln -s conf$$.file conf$$ 2>/dev/null; then
12710
    as_ln_s='ln -s'
12711
    # ... but there are two gotchas:
12712
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12713
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12714
    # In both cases, we have to default to `cp -p'.
12715
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12716
      as_ln_s='cp -p'
12717
  elif ln conf$$.file conf$$ 2>/dev/null; then
12718
    as_ln_s=ln
12719
  else
1 by Noah Slater
Import upstream version 0.7.3~svn684
12720
    as_ln_s='cp -p'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12721
  fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
12722
else
12723
  as_ln_s='cp -p'
12724
fi
12725
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12726
rmdir conf$$.dir 2>/dev/null
12727
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12728
12729
# as_fn_mkdir_p
12730
# -------------
12731
# Create "$as_dir" as a directory, including parents if necessary.
12732
as_fn_mkdir_p ()
12733
{
12734
12735
  case $as_dir in #(
12736
  -*) as_dir=./$as_dir;;
12737
  esac
12738
  test -d "$as_dir" || eval $as_mkdir_p || {
12739
    as_dirs=
12740
    while :; do
12741
      case $as_dir in #(
12742
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12743
      *) as_qdir=$as_dir;;
12744
      esac
12745
      as_dirs="'$as_qdir' $as_dirs"
12746
      as_dir=`$as_dirname -- "$as_dir" ||
12747
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12748
	 X"$as_dir" : 'X\(//\)[^/]' \| \
12749
	 X"$as_dir" : 'X\(//\)$' \| \
12750
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12751
$as_echo X"$as_dir" |
12752
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12753
	    s//\1/
12754
	    q
12755
	  }
12756
	  /^X\(\/\/\)[^/].*/{
12757
	    s//\1/
12758
	    q
12759
	  }
12760
	  /^X\(\/\/\)$/{
12761
	    s//\1/
12762
	    q
12763
	  }
12764
	  /^X\(\/\).*/{
12765
	    s//\1/
12766
	    q
12767
	  }
12768
	  s/.*/./; q'`
12769
      test -d "$as_dir" && break
12770
    done
12771
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12772
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12773
12774
12775
} # as_fn_mkdir_p
1 by Noah Slater
Import upstream version 0.7.3~svn684
12776
if mkdir -p . 2>/dev/null; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12777
  as_mkdir_p='mkdir -p "$as_dir"'
1 by Noah Slater
Import upstream version 0.7.3~svn684
12778
else
12779
  test -d ./-p && rmdir ./-p
12780
  as_mkdir_p=false
12781
fi
12782
12783
if test -x / >/dev/null 2>&1; then
12784
  as_test_x='test -x'
12785
else
12786
  if ls -dL / >/dev/null 2>&1; then
12787
    as_ls_L_option=L
12788
  else
12789
    as_ls_L_option=
12790
  fi
12791
  as_test_x='
12792
    eval sh -c '\''
12793
      if test -d "$1"; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12794
	test -d "$1/.";
1 by Noah Slater
Import upstream version 0.7.3~svn684
12795
      else
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12796
	case $1 in #(
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12797
	-*)set "./$1";;
1 by Noah Slater
Import upstream version 0.7.3~svn684
12798
	esac;
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12799
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1 by Noah Slater
Import upstream version 0.7.3~svn684
12800
	???[sx]*):;;*)false;;esac;fi
12801
    '\'' sh
12802
  '
12803
fi
12804
as_executable_p=$as_test_x
12805
12806
# Sed expression to map a string onto a valid CPP name.
12807
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12808
12809
# Sed expression to map a string onto a valid variable name.
12810
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12811
12812
12813
exec 6>&1
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12814
## ----------------------------------- ##
12815
## Main body of $CONFIG_STATUS script. ##
12816
## ----------------------------------- ##
12817
_ASEOF
12818
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
12819
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12820
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12821
# Save the log message, to keep $0 and so on meaningful, and to
1 by Noah Slater
Import upstream version 0.7.3~svn684
12822
# report actual input values of CONFIG_FILES etc. instead of their
12823
# values after options handling.
12824
ac_log="
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12825
This file was extended by Apache CouchDB $as_me 0.11.0, which was
12826
generated by GNU Autoconf 2.64.  Invocation command line was
1 by Noah Slater
Import upstream version 0.7.3~svn684
12827
12828
  CONFIG_FILES    = $CONFIG_FILES
12829
  CONFIG_HEADERS  = $CONFIG_HEADERS
12830
  CONFIG_LINKS    = $CONFIG_LINKS
12831
  CONFIG_COMMANDS = $CONFIG_COMMANDS
12832
  $ $0 $@
12833
12834
on `(hostname || uname -n) 2>/dev/null | sed 1q`
12835
"
12836
12837
_ACEOF
12838
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12839
case $ac_config_files in *"
12840
"*) set x $ac_config_files; shift; ac_config_files=$*;;
12841
esac
12842
12843
case $ac_config_headers in *"
12844
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12845
esac
12846
12847
12848
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
12849
# Files that config.status was made for.
12850
config_files="$ac_config_files"
12851
config_headers="$ac_config_headers"
12852
config_commands="$ac_config_commands"
12853
12854
_ACEOF
12855
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12856
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
12857
ac_cs_usage="\
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12858
\`$as_me' instantiates files and other configuration actions
12859
from templates according to the current configuration.  Unless the files
12860
and actions are specified as TAGs, all are instantiated by default.
1 by Noah Slater
Import upstream version 0.7.3~svn684
12861
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12862
Usage: $0 [OPTION]... [TAG]...
1 by Noah Slater
Import upstream version 0.7.3~svn684
12863
12864
  -h, --help       print this help, then exit
12865
  -V, --version    print version number and configuration settings, then exit
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12866
  -q, --quiet, --silent
12867
                   do not print progress messages
1 by Noah Slater
Import upstream version 0.7.3~svn684
12868
  -d, --debug      don't remove temporary files
12869
      --recheck    update $as_me by reconfiguring in the same conditions
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12870
      --file=FILE[:TEMPLATE]
12871
                   instantiate the configuration file FILE
12872
      --header=FILE[:TEMPLATE]
12873
                   instantiate the configuration header FILE
1 by Noah Slater
Import upstream version 0.7.3~svn684
12874
12875
Configuration files:
12876
$config_files
12877
12878
Configuration headers:
12879
$config_headers
12880
12881
Configuration commands:
12882
$config_commands
12883
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12884
Report bugs to the package provider."
1 by Noah Slater
Import upstream version 0.7.3~svn684
12885
12886
_ACEOF
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12887
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
12888
ac_cs_version="\\
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12889
Apache CouchDB config.status 0.11.0
12890
configured by $0, generated by GNU Autoconf 2.64,
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12891
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12892
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12893
Copyright (C) 2009 Free Software Foundation, Inc.
1 by Noah Slater
Import upstream version 0.7.3~svn684
12894
This config.status script is free software; the Free Software Foundation
12895
gives unlimited permission to copy, distribute and modify it."
12896
12897
ac_pwd='$ac_pwd'
12898
srcdir='$srcdir'
12899
INSTALL='$INSTALL'
1.1.2 by Noah Slater
Import upstream version 0.8.0
12900
MKDIR_P='$MKDIR_P'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12901
AWK='$AWK'
12902
test -n "\$AWK" || AWK=awk
1 by Noah Slater
Import upstream version 0.7.3~svn684
12903
_ACEOF
12904
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12905
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12906
# The default lists apply if the user does not specify any file.
1 by Noah Slater
Import upstream version 0.7.3~svn684
12907
ac_need_defaults=:
12908
while test $# != 0
12909
do
12910
  case $1 in
12911
  --*=*)
12912
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12913
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12914
    ac_shift=:
12915
    ;;
12916
  *)
12917
    ac_option=$1
12918
    ac_optarg=$2
12919
    ac_shift=shift
12920
    ;;
12921
  esac
12922
12923
  case $ac_option in
12924
  # Handling of the options.
12925
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12926
    ac_cs_recheck=: ;;
12927
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12928
    $as_echo "$ac_cs_version"; exit ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
12929
  --debug | --debu | --deb | --de | --d | -d )
12930
    debug=: ;;
12931
  --file | --fil | --fi | --f )
12932
    $ac_shift
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12933
    case $ac_optarg in
12934
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12935
    esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12936
    as_fn_append CONFIG_FILES " '$ac_optarg'"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12937
    ac_need_defaults=false;;
12938
  --header | --heade | --head | --hea )
12939
    $ac_shift
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12940
    case $ac_optarg in
12941
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12942
    esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12943
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12944
    ac_need_defaults=false;;
12945
  --he | --h)
12946
    # Conflict between --help and --header
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12947
    as_fn_error "ambiguous option: \`$1'
12948
Try \`$0 --help' for more information.";;
1 by Noah Slater
Import upstream version 0.7.3~svn684
12949
  --help | --hel | -h )
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12950
    $as_echo "$ac_cs_usage"; exit ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
12951
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12952
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12953
    ac_cs_silent=: ;;
12954
12955
  # This is an error.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12956
  -*) as_fn_error "unrecognized option: \`$1'
12957
Try \`$0 --help' for more information." ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
12958
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
12959
  *) as_fn_append ac_config_targets " $1"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12960
     ac_need_defaults=false ;;
12961
12962
  esac
12963
  shift
12964
done
12965
12966
ac_configure_extra_args=
12967
12968
if $ac_cs_silent; then
12969
  exec 6>/dev/null
12970
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12971
fi
12972
12973
_ACEOF
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12974
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
12975
if \$ac_cs_recheck; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12976
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12977
  shift
12978
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12979
  CONFIG_SHELL='$SHELL'
1 by Noah Slater
Import upstream version 0.7.3~svn684
12980
  export CONFIG_SHELL
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12981
  exec "\$@"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12982
fi
12983
12984
_ACEOF
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12985
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
12986
exec 5>>config.log
12987
{
12988
  echo
12989
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12990
## Running $as_me. ##
12991
_ASBOX
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12992
  $as_echo "$ac_log"
1 by Noah Slater
Import upstream version 0.7.3~svn684
12993
} >&5
12994
12995
_ACEOF
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
12996
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
12997
#
12998
# INIT-COMMANDS
12999
#
13000
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13001
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13002
13003
# The HP-UX ksh and POSIX shell print the target directory to stdout
13004
# if CDPATH is set.
13005
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13006
13007
sed_quote_subst='$sed_quote_subst'
13008
double_quote_subst='$double_quote_subst'
13009
delay_variable_subst='$delay_variable_subst'
13010
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13011
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13012
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13013
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13014
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13015
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13016
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13017
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13018
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13019
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13020
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13021
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13022
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13023
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13024
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13025
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13026
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13027
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13028
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13029
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13030
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13031
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13032
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13033
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13034
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13035
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13036
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13037
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13038
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13039
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13040
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13041
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13042
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13043
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13044
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13045
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13046
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13047
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13048
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13049
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13050
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13051
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13052
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13053
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13054
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13055
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13056
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13057
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13058
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13059
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13060
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13061
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13062
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13063
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13064
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13065
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13066
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13067
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13068
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13069
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13070
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13071
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13072
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13073
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13074
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13075
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13076
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13077
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13078
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13079
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13080
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13081
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13082
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13083
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13084
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13085
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13086
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13087
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13088
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13089
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13090
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13091
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13092
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13093
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13094
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13095
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13096
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13097
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13098
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13099
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13100
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13101
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13102
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13103
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13104
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13105
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13106
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13107
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13108
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13109
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13110
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13111
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13112
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13113
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13114
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13115
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13116
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13117
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13118
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13119
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13120
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13121
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13122
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13123
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13124
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13125
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13126
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13127
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13128
13129
LTCC='$LTCC'
13130
LTCFLAGS='$LTCFLAGS'
13131
compiler='$compiler_DEFAULT'
13132
13133
# Quote evaled strings.
13134
for var in SED \
13135
GREP \
13136
EGREP \
13137
FGREP \
13138
LD \
13139
NM \
13140
LN_S \
13141
lt_SP2NL \
13142
lt_NL2SP \
13143
reload_flag \
13144
OBJDUMP \
13145
deplibs_check_method \
13146
file_magic_cmd \
13147
AR \
13148
AR_FLAGS \
13149
STRIP \
13150
RANLIB \
13151
CC \
13152
CFLAGS \
13153
compiler \
13154
lt_cv_sys_global_symbol_pipe \
13155
lt_cv_sys_global_symbol_to_cdecl \
13156
lt_cv_sys_global_symbol_to_c_name_address \
13157
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13158
SHELL \
13159
ECHO \
13160
lt_prog_compiler_no_builtin_flag \
13161
lt_prog_compiler_wl \
13162
lt_prog_compiler_pic \
13163
lt_prog_compiler_static \
13164
lt_cv_prog_compiler_c_o \
13165
need_locks \
13166
DSYMUTIL \
13167
NMEDIT \
13168
LIPO \
13169
OTOOL \
13170
OTOOL64 \
13171
shrext_cmds \
13172
export_dynamic_flag_spec \
13173
whole_archive_flag_spec \
13174
compiler_needs_object \
13175
with_gnu_ld \
13176
allow_undefined_flag \
13177
no_undefined_flag \
13178
hardcode_libdir_flag_spec \
13179
hardcode_libdir_flag_spec_ld \
13180
hardcode_libdir_separator \
13181
fix_srcfile_path \
13182
exclude_expsyms \
13183
include_expsyms \
13184
file_list_spec \
13185
variables_saved_for_relink \
13186
libname_spec \
13187
library_names_spec \
13188
soname_spec \
13189
finish_eval \
13190
old_striplib \
13191
striplib; do
13192
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13193
    *[\\\\\\\`\\"\\\$]*)
13194
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13195
      ;;
13196
    *)
13197
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13198
      ;;
13199
    esac
13200
done
13201
13202
# Double-quote double-evaled strings.
13203
for var in reload_cmds \
13204
old_postinstall_cmds \
13205
old_postuninstall_cmds \
13206
old_archive_cmds \
13207
extract_expsyms_cmds \
13208
old_archive_from_new_cmds \
13209
old_archive_from_expsyms_cmds \
13210
archive_cmds \
13211
archive_expsym_cmds \
13212
module_cmds \
13213
module_expsym_cmds \
13214
export_symbols_cmds \
13215
prelink_cmds \
13216
postinstall_cmds \
13217
postuninstall_cmds \
13218
finish_cmds \
13219
sys_lib_search_path_spec \
13220
sys_lib_dlsearch_path_spec; do
13221
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13222
    *[\\\\\\\`\\"\\\$]*)
13223
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13224
      ;;
13225
    *)
13226
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13227
      ;;
13228
    esac
13229
done
13230
13231
# Fix-up fallback echo if it was mangled by the above quoting rules.
13232
case \$lt_ECHO in
13233
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13234
  ;;
13235
esac
13236
13237
ac_aux_dir='$ac_aux_dir'
13238
xsi_shell='$xsi_shell'
13239
lt_shell_append='$lt_shell_append'
13240
13241
# See if we are running on zsh, and set the options which allow our
13242
# commands through without removal of \ escapes INIT.
13243
if test -n "\${ZSH_VERSION+set}" ; then
13244
   setopt NO_GLOB_SUBST
13245
fi
13246
13247
13248
    PACKAGE='$PACKAGE'
13249
    VERSION='$VERSION'
13250
    TIMESTAMP='$TIMESTAMP'
13251
    RM='$RM'
13252
    ofile='$ofile'
13253
13254
13255
13256
1 by Noah Slater
Import upstream version 0.7.3~svn684
13257
_ACEOF
13258
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13259
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
13260
13261
# Handling of arguments.
13262
for ac_config_target in $ac_config_targets
13263
do
13264
  case $ac_config_target in
13265
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13266
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13267
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
13268
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13269
    "bin/couchjs.tpl") CONFIG_FILES="$CONFIG_FILES bin/couchjs.tpl" ;;
13270
    "bin/couchdb.tpl") CONFIG_FILES="$CONFIG_FILES bin/couchdb.tpl" ;;
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
13271
    "bin/couchdb.bat.tpl") CONFIG_FILES="$CONFIG_FILES bin/couchdb.bat.tpl" ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
13272
    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
13273
    "etc/couchdb/Makefile") CONFIG_FILES="$CONFIG_FILES etc/couchdb/Makefile" ;;
1.2.1 by Noah Slater
Import upstream version 0.9.0
13274
    "etc/couchdb/default.ini.tpl") CONFIG_FILES="$CONFIG_FILES etc/couchdb/default.ini.tpl" ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
13275
    "etc/default/Makefile") CONFIG_FILES="$CONFIG_FILES etc/default/Makefile" ;;
13276
    "etc/init/couchdb.tpl") CONFIG_FILES="$CONFIG_FILES etc/init/couchdb.tpl" ;;
13277
    "etc/init/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init/Makefile" ;;
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
13278
    "etc/launchd/org.apache.couchdb.plist.tpl") CONFIG_FILES="$CONFIG_FILES etc/launchd/org.apache.couchdb.plist.tpl" ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
13279
    "etc/launchd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/launchd/Makefile" ;;
13280
    "etc/logrotate.d/couchdb.tpl") CONFIG_FILES="$CONFIG_FILES etc/logrotate.d/couchdb.tpl" ;;
13281
    "etc/logrotate.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/logrotate.d/Makefile" ;;
13282
    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
13283
    "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
1.2.6 by Elliot Murphy
Import upstream version 0.10.0
13284
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
13285
    "src/couchdb/couch.app.tpl") CONFIG_FILES="$CONFIG_FILES src/couchdb/couch.app.tpl" ;;
13286
    "src/couchdb/Makefile") CONFIG_FILES="$CONFIG_FILES src/couchdb/Makefile" ;;
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
13287
    "src/couchdb/priv/Makefile") CONFIG_FILES="$CONFIG_FILES src/couchdb/priv/Makefile" ;;
13288
    "src/erlang-oauth/Makefile") CONFIG_FILES="$CONFIG_FILES src/erlang-oauth/Makefile" ;;
1.2.6 by Elliot Murphy
Import upstream version 0.10.0
13289
    "src/etap/Makefile") CONFIG_FILES="$CONFIG_FILES src/etap/Makefile" ;;
1.2.1 by Noah Slater
Import upstream version 0.9.0
13290
    "src/ibrowse/Makefile") CONFIG_FILES="$CONFIG_FILES src/ibrowse/Makefile" ;;
1.1.1 by Noah Slater
Import upstream version 0.7.3~svn650270
13291
    "src/mochiweb/Makefile") CONFIG_FILES="$CONFIG_FILES src/mochiweb/Makefile" ;;
1.2.1 by Noah Slater
Import upstream version 0.9.0
13292
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13293
    "test/bench/Makefile") CONFIG_FILES="$CONFIG_FILES test/bench/Makefile" ;;
13294
    "test/etap/Makefile") CONFIG_FILES="$CONFIG_FILES test/etap/Makefile" ;;
13295
    "test/etap/test_util.erl") CONFIG_FILES="$CONFIG_FILES test/etap/test_util.erl" ;;
13296
    "test/javascript/Makefile") CONFIG_FILES="$CONFIG_FILES test/javascript/Makefile" ;;
13297
    "test/view_server/Makefile") CONFIG_FILES="$CONFIG_FILES test/view_server/Makefile" ;;
1.2.1 by Noah Slater
Import upstream version 0.9.0
13298
    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
13299
    "var/Makefile") CONFIG_FILES="$CONFIG_FILES var/Makefile" ;;
13300
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13301
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
13302
  esac
13303
done
13304
13305
13306
# If the user did not use the arguments to specify the items to instantiate,
13307
# then the envvar interface is used.  Set only those that are not.
13308
# We use the long form for the default assignment because of an extremely
13309
# bizarre bug on SunOS 4.1.3.
13310
if $ac_need_defaults; then
13311
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13312
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13313
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13314
fi
13315
13316
# Have a temporary directory for convenience.  Make it in the build tree
13317
# simply because there is no reason against having it here, and in addition,
13318
# creating and moving files from /tmp can sometimes cause problems.
13319
# Hook for its removal unless debugging.
13320
# Note that there is a small window in which the directory will not be cleaned:
13321
# after its creation but before its name has been assigned to `$tmp'.
13322
$debug ||
13323
{
13324
  tmp=
13325
  trap 'exit_status=$?
13326
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13327
' 0
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13328
  trap 'as_fn_exit 1' 1 2 13 15
1 by Noah Slater
Import upstream version 0.7.3~svn684
13329
}
13330
# Create a (secure) tmp directory for tmp files.
13331
13332
{
13333
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13334
  test -n "$tmp" && test -d "$tmp"
13335
}  ||
13336
{
13337
  tmp=./conf$$-$RANDOM
13338
  (umask 077 && mkdir "$tmp")
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13339
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13340
13341
# Set up the scripts for CONFIG_FILES section.
13342
# No need to generate them if there are no CONFIG_FILES.
13343
# This happens for instance with `./config.status config.h'.
1 by Noah Slater
Import upstream version 0.7.3~svn684
13344
if test -n "$CONFIG_FILES"; then
13345
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13346
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13347
ac_cr=`echo X | tr X '\015'`
13348
# On cygwin, bash can eat \r inside `` if the user requested igncr.
13349
# But we know of no other shell where ac_cr would be empty at this
13350
# point, so we can use a bashism as a fallback.
13351
if test "x$ac_cr" = x; then
13352
  eval ac_cr=\$\'\\r\'
13353
fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13354
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13355
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13356
  ac_cs_awk_cr='\r'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13357
else
13358
  ac_cs_awk_cr=$ac_cr
13359
fi
13360
13361
echo 'BEGIN {' >"$tmp/subs1.awk" &&
13362
_ACEOF
13363
13364
13365
{
13366
  echo "cat >conf$$subs.awk <<_ACEOF" &&
13367
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13368
  echo "_ACEOF"
13369
} >conf$$subs.sh ||
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13370
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13371
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13372
ac_delim='%!_!# '
13373
for ac_last_try in false false false false false :; do
13374
  . ./conf$$subs.sh ||
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13375
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13376
13377
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13378
  if test $ac_delim_n = $ac_delim_num; then
13379
    break
13380
  elif $ac_last_try; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13381
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13382
  else
13383
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13384
  fi
13385
done
13386
rm -f conf$$subs.sh
13387
13388
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13389
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13390
_ACEOF
13391
sed -n '
13392
h
13393
s/^/S["/; s/!.*/"]=/
13394
p
13395
g
13396
s/^[^!]*!//
13397
:repl
13398
t repl
13399
s/'"$ac_delim"'$//
13400
t delim
13401
:nl
13402
h
13403
s/\(.\{148\}\).*/\1/
13404
t more1
13405
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13406
p
13407
n
13408
b repl
13409
:more1
13410
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13411
p
13412
g
13413
s/.\{148\}//
13414
t nl
13415
:delim
13416
h
13417
s/\(.\{148\}\).*/\1/
13418
t more2
13419
s/["\\]/\\&/g; s/^/"/; s/$/"/
13420
p
13421
b
13422
:more2
13423
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13424
p
13425
g
13426
s/.\{148\}//
13427
t delim
13428
' <conf$$subs.awk | sed '
13429
/^[^""]/{
13430
  N
13431
  s/\n//
13432
}
13433
' >>$CONFIG_STATUS || ac_write_fail=1
13434
rm -f conf$$subs.awk
13435
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13436
_ACAWK
13437
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13438
  for (key in S) S_is_set[key] = 1
13439
  FS = ""
13440
13441
}
13442
{
13443
  line = $ 0
13444
  nfields = split(line, field, "@")
13445
  substed = 0
13446
  len = length(field[1])
13447
  for (i = 2; i < nfields; i++) {
13448
    key = field[i]
13449
    keylen = length(key)
13450
    if (S_is_set[key]) {
13451
      value = S[key]
13452
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13453
      len += length(value) + length(field[++i])
13454
      substed = 1
13455
    } else
13456
      len += 1 + keylen
13457
  }
13458
13459
  print line
13460
}
13461
13462
_ACAWK
13463
_ACEOF
13464
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13465
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13466
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13467
else
13468
  cat
13469
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13470
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13471
_ACEOF
1 by Noah Slater
Import upstream version 0.7.3~svn684
13472
13473
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13474
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13475
# trailing colons and then remove the whole line if VPATH becomes empty
13476
# (actually we leave an empty line to preserve line numbers).
13477
if test "x$srcdir" = x.; then
13478
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13479
s/:*\$(srcdir):*/:/
13480
s/:*\${srcdir}:*/:/
13481
s/:*@srcdir@:*/:/
13482
s/^\([^=]*=[	 ]*\):*/\1/
13483
s/:*$//
13484
s/^[^=]*=[	 ]*$//
13485
}'
13486
fi
13487
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13488
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
13489
fi # test -n "$CONFIG_FILES"
13490
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13491
# Set up the scripts for CONFIG_HEADERS section.
13492
# No need to generate them if there are no CONFIG_HEADERS.
13493
# This happens for instance with `./config.status Makefile'.
13494
if test -n "$CONFIG_HEADERS"; then
13495
cat >"$tmp/defines.awk" <<\_ACAWK ||
13496
BEGIN {
13497
_ACEOF
13498
13499
# Transform confdefs.h into an awk script `defines.awk', embedded as
13500
# here-document in config.status, that substitutes the proper values into
13501
# config.h.in to produce config.h.
13502
13503
# Create a delimiter string that does not exist in confdefs.h, to ease
13504
# handling of long lines.
13505
ac_delim='%!_!# '
13506
for ac_last_try in false false :; do
13507
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13508
  if test -z "$ac_t"; then
13509
    break
13510
  elif $ac_last_try; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13511
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13512
  else
13513
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13514
  fi
13515
done
13516
13517
# For the awk script, D is an array of macro values keyed by name,
13518
# likewise P contains macro parameters if any.  Preserve backslash
13519
# newline sequences.
13520
13521
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13522
sed -n '
13523
s/.\{148\}/&'"$ac_delim"'/g
13524
t rset
13525
:rset
13526
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13527
t def
13528
d
13529
:def
13530
s/\\$//
13531
t bsnl
13532
s/["\\]/\\&/g
13533
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13534
D["\1"]=" \3"/p
13535
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13536
d
13537
:bsnl
13538
s/["\\]/\\&/g
13539
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13540
D["\1"]=" \3\\\\\\n"\\/p
13541
t cont
13542
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13543
t cont
13544
d
13545
:cont
13546
n
13547
s/.\{148\}/&'"$ac_delim"'/g
13548
t clear
13549
:clear
13550
s/\\$//
13551
t bsnlc
13552
s/["\\]/\\&/g; s/^/"/; s/$/"/p
13553
d
13554
:bsnlc
13555
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13556
b cont
13557
' <confdefs.h | sed '
13558
s/'"$ac_delim"'/"\\\
13559
"/g' >>$CONFIG_STATUS || ac_write_fail=1
13560
13561
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13562
  for (key in D) D_is_set[key] = 1
13563
  FS = ""
13564
}
13565
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13566
  line = \$ 0
13567
  split(line, arg, " ")
13568
  if (arg[1] == "#") {
13569
    defundef = arg[2]
13570
    mac1 = arg[3]
13571
  } else {
13572
    defundef = substr(arg[1], 2)
13573
    mac1 = arg[2]
13574
  }
13575
  split(mac1, mac2, "(") #)
13576
  macro = mac2[1]
13577
  prefix = substr(line, 1, index(line, defundef) - 1)
13578
  if (D_is_set[macro]) {
13579
    # Preserve the white space surrounding the "#".
13580
    print prefix "define", macro P[macro] D[macro]
13581
    next
13582
  } else {
13583
    # Replace #undef with comments.  This is necessary, for example,
13584
    # in the case of _POSIX_SOURCE, which is predefined and required
13585
    # on some systems where configure will not decide to define it.
13586
    if (defundef == "undef") {
13587
      print "/*", prefix defundef, macro, "*/"
13588
      next
13589
    }
13590
  }
13591
}
13592
{ print }
13593
_ACAWK
13594
_ACEOF
13595
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13596
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13597
fi # test -n "$CONFIG_HEADERS"
13598
13599
13600
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13601
shift
13602
for ac_tag
1 by Noah Slater
Import upstream version 0.7.3~svn684
13603
do
13604
  case $ac_tag in
13605
  :[FHLC]) ac_mode=$ac_tag; continue;;
13606
  esac
13607
  case $ac_mode$ac_tag in
13608
  :[FHL]*:*);;
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13609
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
13610
  :[FH]-) ac_tag=-:-;;
13611
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13612
  esac
13613
  ac_save_IFS=$IFS
13614
  IFS=:
13615
  set x $ac_tag
13616
  IFS=$ac_save_IFS
13617
  shift
13618
  ac_file=$1
13619
  shift
13620
13621
  case $ac_mode in
13622
  :L) ac_source=$1;;
13623
  :[FH])
13624
    ac_file_inputs=
13625
    for ac_f
13626
    do
13627
      case $ac_f in
13628
      -) ac_f="$tmp/stdin";;
13629
      *) # Look for the file first in the build tree, then in the source tree
13630
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13631
	 # because $ac_f cannot contain `:'.
13632
	 test -f "$ac_f" ||
13633
	   case $ac_f in
13634
	   [\\/$]*) false;;
13635
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13636
	   esac ||
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13637
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
13638
      esac
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13639
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13640
      as_fn_append ac_file_inputs " '$ac_f'"
1 by Noah Slater
Import upstream version 0.7.3~svn684
13641
    done
13642
13643
    # Let's still pretend it is `configure' which instantiates (i.e., don't
13644
    # use $as_me), people would be surprised to read:
13645
    #    /* config.h.  Generated by config.status.  */
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13646
    configure_input='Generated from '`
13647
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13648
	`' by configure.'
1 by Noah Slater
Import upstream version 0.7.3~svn684
13649
    if test x"$ac_file" != x-; then
13650
      configure_input="$ac_file.  $configure_input"
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13651
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13652
$as_echo "$as_me: creating $ac_file" >&6;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
13653
    fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13654
    # Neutralize special characters interpreted by sed in replacement strings.
13655
    case $configure_input in #(
13656
    *\&* | *\|* | *\\* )
13657
       ac_sed_conf_input=`$as_echo "$configure_input" |
13658
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13659
    *) ac_sed_conf_input=$configure_input;;
13660
    esac
1 by Noah Slater
Import upstream version 0.7.3~svn684
13661
13662
    case $ac_tag in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13663
    *:-:* | *:-) cat >"$tmp/stdin" \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13664
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
13665
    esac
13666
    ;;
13667
  esac
13668
13669
  ac_dir=`$as_dirname -- "$ac_file" ||
13670
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13671
	 X"$ac_file" : 'X\(//\)[^/]' \| \
13672
	 X"$ac_file" : 'X\(//\)$' \| \
13673
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13674
$as_echo X"$ac_file" |
13675
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13676
	    s//\1/
13677
	    q
13678
	  }
13679
	  /^X\(\/\/\)[^/].*/{
13680
	    s//\1/
13681
	    q
13682
	  }
13683
	  /^X\(\/\/\)$/{
13684
	    s//\1/
13685
	    q
13686
	  }
13687
	  /^X\(\/\).*/{
13688
	    s//\1/
13689
	    q
13690
	  }
13691
	  s/.*/./; q'`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13692
  as_dir="$ac_dir"; as_fn_mkdir_p
1 by Noah Slater
Import upstream version 0.7.3~svn684
13693
  ac_builddir=.
13694
13695
case "$ac_dir" in
13696
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13697
*)
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13698
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1 by Noah Slater
Import upstream version 0.7.3~svn684
13699
  # A ".." for each directory in $ac_dir_suffix.
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13700
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1 by Noah Slater
Import upstream version 0.7.3~svn684
13701
  case $ac_top_builddir_sub in
13702
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13703
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13704
  esac ;;
13705
esac
13706
ac_abs_top_builddir=$ac_pwd
13707
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13708
# for backward compatibility:
13709
ac_top_builddir=$ac_top_build_prefix
13710
13711
case $srcdir in
13712
  .)  # We are building in place.
13713
    ac_srcdir=.
13714
    ac_top_srcdir=$ac_top_builddir_sub
13715
    ac_abs_top_srcdir=$ac_pwd ;;
13716
  [\\/]* | ?:[\\/]* )  # Absolute name.
13717
    ac_srcdir=$srcdir$ac_dir_suffix;
13718
    ac_top_srcdir=$srcdir
13719
    ac_abs_top_srcdir=$srcdir ;;
13720
  *) # Relative name.
13721
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13722
    ac_top_srcdir=$ac_top_build_prefix$srcdir
13723
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13724
esac
13725
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13726
13727
13728
  case $ac_mode in
13729
  :F)
13730
  #
13731
  # CONFIG_FILE
13732
  #
13733
13734
  case $INSTALL in
13735
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13736
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13737
  esac
1.1.2 by Noah Slater
Import upstream version 0.8.0
13738
  ac_MKDIR_P=$MKDIR_P
13739
  case $MKDIR_P in
13740
  [\\/$]* | ?:[\\/]* ) ;;
13741
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13742
  esac
1 by Noah Slater
Import upstream version 0.7.3~svn684
13743
_ACEOF
13744
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13745
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
13746
# If the template does not know about datarootdir, expand it.
13747
# FIXME: This hack should be removed a few years after 2.60.
13748
ac_datarootdir_hack=; ac_datarootdir_seen=
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13749
ac_sed_dataroot='
13750
/datarootdir/ {
1 by Noah Slater
Import upstream version 0.7.3~svn684
13751
  p
13752
  q
13753
}
13754
/@datadir@/p
13755
/@docdir@/p
13756
/@infodir@/p
13757
/@localedir@/p
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13758
/@mandir@/p'
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13759
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1 by Noah Slater
Import upstream version 0.7.3~svn684
13760
*datarootdir*) ac_datarootdir_seen=yes;;
13761
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13762
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13763
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
13764
_ACEOF
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13765
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
13766
  ac_datarootdir_hack='
13767
  s&@datadir@&$datadir&g
13768
  s&@docdir@&$docdir&g
13769
  s&@infodir@&$infodir&g
13770
  s&@localedir@&$localedir&g
13771
  s&@mandir@&$mandir&g
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13772
  s&\\\${datarootdir}&$datarootdir&g' ;;
1 by Noah Slater
Import upstream version 0.7.3~svn684
13773
esac
13774
_ACEOF
13775
13776
# Neutralize VPATH when `$srcdir' = `.'.
13777
# Shell code in configure.ac might set extrasub.
13778
# FIXME: do we really want to maintain this feature?
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13779
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13780
ac_sed_extra="$ac_vpsub
1 by Noah Slater
Import upstream version 0.7.3~svn684
13781
$extrasub
13782
_ACEOF
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13783
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Noah Slater
Import upstream version 0.7.3~svn684
13784
:t
13785
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13786
s|@configure_input@|$ac_sed_conf_input|;t t
1 by Noah Slater
Import upstream version 0.7.3~svn684
13787
s&@top_builddir@&$ac_top_builddir_sub&;t t
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13788
s&@top_build_prefix@&$ac_top_build_prefix&;t t
1 by Noah Slater
Import upstream version 0.7.3~svn684
13789
s&@srcdir@&$ac_srcdir&;t t
13790
s&@abs_srcdir@&$ac_abs_srcdir&;t t
13791
s&@top_srcdir@&$ac_top_srcdir&;t t
13792
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13793
s&@builddir@&$ac_builddir&;t t
13794
s&@abs_builddir@&$ac_abs_builddir&;t t
13795
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13796
s&@INSTALL@&$ac_INSTALL&;t t
1.1.2 by Noah Slater
Import upstream version 0.8.0
13797
s&@MKDIR_P@&$ac_MKDIR_P&;t t
1 by Noah Slater
Import upstream version 0.7.3~svn684
13798
$ac_datarootdir_hack
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13799
"
13800
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13801
  || as_fn_error "could not create $ac_file" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
13802
13803
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13804
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13805
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13806
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1 by Noah Slater
Import upstream version 0.7.3~svn684
13807
which seems to be undefined.  Please make sure it is defined." >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13808
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1 by Noah Slater
Import upstream version 0.7.3~svn684
13809
which seems to be undefined.  Please make sure it is defined." >&2;}
13810
13811
  rm -f "$tmp/stdin"
13812
  case $ac_file in
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13813
  -) cat "$tmp/out" && rm -f "$tmp/out";;
13814
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13815
  esac \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13816
  || as_fn_error "could not create $ac_file" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
13817
 ;;
13818
  :H)
13819
  #
13820
  # CONFIG_HEADER
13821
  #
13822
  if test x"$ac_file" != x-; then
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13823
    {
13824
      $as_echo "/* $configure_input  */" \
13825
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13826
    } >"$tmp/config.h" \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13827
      || as_fn_error "could not create $ac_file" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13828
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13829
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13830
$as_echo "$as_me: $ac_file is unchanged" >&6;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
13831
    else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13832
      rm -f "$ac_file"
13833
      mv "$tmp/config.h" "$ac_file" \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13834
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
13835
    fi
13836
  else
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13837
    $as_echo "/* $configure_input  */" \
13838
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13839
      || as_fn_error "could not create -" "$LINENO" 5
1 by Noah Slater
Import upstream version 0.7.3~svn684
13840
  fi
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13841
# Compute "$ac_file"'s index in $config_headers.
13842
_am_arg="$ac_file"
1 by Noah Slater
Import upstream version 0.7.3~svn684
13843
_am_stamp_count=1
13844
for _am_header in $config_headers :; do
13845
  case $_am_header in
1.1.2 by Noah Slater
Import upstream version 0.8.0
13846
    $_am_arg | $_am_arg:* )
1 by Noah Slater
Import upstream version 0.7.3~svn684
13847
      break ;;
13848
    * )
13849
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13850
  esac
13851
done
1.1.2 by Noah Slater
Import upstream version 0.8.0
13852
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13853
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13854
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13855
	 X"$_am_arg" : 'X\(//\)$' \| \
13856
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13857
$as_echo X"$_am_arg" |
1 by Noah Slater
Import upstream version 0.7.3~svn684
13858
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13859
	    s//\1/
13860
	    q
13861
	  }
13862
	  /^X\(\/\/\)[^/].*/{
13863
	    s//\1/
13864
	    q
13865
	  }
13866
	  /^X\(\/\/\)$/{
13867
	    s//\1/
13868
	    q
13869
	  }
13870
	  /^X\(\/\).*/{
13871
	    s//\1/
13872
	    q
13873
	  }
13874
	  s/.*/./; q'`/stamp-h$_am_stamp_count
13875
 ;;
13876
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13877
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13878
$as_echo "$as_me: executing $ac_file commands" >&6;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
13879
 ;;
13880
  esac
13881
13882
13883
  case $ac_file$ac_mode in
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13884
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13885
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13886
  # are listed without --file.  Let's play safe and only enable the eval
13887
  # if we detect the quoting.
13888
  case $CONFIG_FILES in
13889
  *\'*) eval set x "$CONFIG_FILES" ;;
13890
  *)   set x $CONFIG_FILES ;;
13891
  esac
13892
  shift
13893
  for mf
13894
  do
13895
    # Strip MF so we end up with the name of the file.
13896
    mf=`echo "$mf" | sed -e 's/:.*$//'`
13897
    # Check whether this is an Automake generated Makefile or not.
13898
    # We used to match only the files named `Makefile.in', but
13899
    # some people rename them; so instead we look at the file content.
13900
    # Grep'ing the first line is not enough: some people post-process
13901
    # each Makefile.in and add a new line on top of each file to say so.
13902
    # Grep'ing the whole file is not good either: AIX grep has a line
13903
    # limit of 2048, but all sed's we know have understand at least 4000.
13904
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13905
      dirpart=`$as_dirname -- "$mf" ||
1 by Noah Slater
Import upstream version 0.7.3~svn684
13906
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13907
	 X"$mf" : 'X\(//\)[^/]' \| \
13908
	 X"$mf" : 'X\(//\)$' \| \
13909
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13910
$as_echo X"$mf" |
1 by Noah Slater
Import upstream version 0.7.3~svn684
13911
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13912
	    s//\1/
13913
	    q
13914
	  }
13915
	  /^X\(\/\/\)[^/].*/{
13916
	    s//\1/
13917
	    q
13918
	  }
13919
	  /^X\(\/\/\)$/{
13920
	    s//\1/
13921
	    q
13922
	  }
13923
	  /^X\(\/\).*/{
13924
	    s//\1/
13925
	    q
13926
	  }
13927
	  s/.*/./; q'`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13928
    else
13929
      continue
13930
    fi
13931
    # Extract the definition of DEPDIR, am__include, and am__quote
13932
    # from the Makefile without running `make'.
13933
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13934
    test -z "$DEPDIR" && continue
13935
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13936
    test -z "am__include" && continue
13937
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13938
    # When using ansi2knr, U may be empty or an underscore; expand it
13939
    U=`sed -n 's/^U = //p' < "$mf"`
13940
    # Find all dependency output files, they are included files with
13941
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13942
    # simplest approach to changing $(DEPDIR) to its actual value in the
13943
    # expansion.
13944
    for file in `sed -n "
13945
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13946
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13947
      # Make sure the directory exists.
13948
      test -f "$dirpart/$file" && continue
13949
      fdir=`$as_dirname -- "$file" ||
1 by Noah Slater
Import upstream version 0.7.3~svn684
13950
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13951
	 X"$file" : 'X\(//\)[^/]' \| \
13952
	 X"$file" : 'X\(//\)$' \| \
13953
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13954
$as_echo X"$file" |
13955
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13956
	    s//\1/
13957
	    q
13958
	  }
13959
	  /^X\(\/\/\)[^/].*/{
13960
	    s//\1/
13961
	    q
13962
	  }
13963
	  /^X\(\/\/\)$/{
13964
	    s//\1/
13965
	    q
13966
	  }
13967
	  /^X\(\/\).*/{
13968
	    s//\1/
13969
	    q
13970
	  }
13971
	  s/.*/./; q'`
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13972
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13973
      # echo "creating $dirpart/$file"
13974
      echo '# dummy' > "$dirpart/$file"
1 by Noah Slater
Import upstream version 0.7.3~svn684
13975
    done
13976
  done
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
13977
}
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
13978
 ;;
13979
    "libtool":C)
13980
13981
    # See if we are running on zsh, and set the options which allow our
13982
    # commands through without removal of \ escapes.
13983
    if test -n "${ZSH_VERSION+set}" ; then
13984
      setopt NO_GLOB_SUBST
13985
    fi
13986
13987
    cfgfile="${ofile}T"
13988
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13989
    $RM "$cfgfile"
13990
13991
    cat <<_LT_EOF >> "$cfgfile"
13992
#! $SHELL
13993
13994
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13995
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13996
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13997
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13998
#
13999
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14000
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14001
#   Written by Gordon Matzigkeit, 1996
14002
#
14003
#   This file is part of GNU Libtool.
14004
#
14005
# GNU Libtool is free software; you can redistribute it and/or
14006
# modify it under the terms of the GNU General Public License as
14007
# published by the Free Software Foundation; either version 2 of
14008
# the License, or (at your option) any later version.
14009
#
14010
# As a special exception to the GNU General Public License,
14011
# if you distribute this file as part of a program or library that
14012
# is built using GNU Libtool, you may include this file under the
14013
# same distribution terms that you use for the rest of that program.
14014
#
14015
# GNU Libtool is distributed in the hope that it will be useful,
14016
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14017
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14018
# GNU General Public License for more details.
14019
#
14020
# You should have received a copy of the GNU General Public License
14021
# along with GNU Libtool; see the file COPYING.  If not, a copy
14022
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14023
# obtained by writing to the Free Software Foundation, Inc.,
14024
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14025
14026
14027
# The names of the tagged configurations supported by this script.
14028
available_tags=""
14029
14030
# ### BEGIN LIBTOOL CONFIG
14031
14032
# Whether or not to build shared libraries.
14033
build_libtool_libs=$enable_shared
14034
14035
# Whether or not to build static libraries.
14036
build_old_libs=$enable_static
14037
14038
# Which release of libtool.m4 was used?
14039
macro_version=$macro_version
14040
macro_revision=$macro_revision
14041
14042
# What type of objects to build.
14043
pic_mode=$pic_mode
14044
14045
# Whether or not to optimize for fast installation.
14046
fast_install=$enable_fast_install
14047
14048
# The host system.
14049
host_alias=$host_alias
14050
host=$host
14051
host_os=$host_os
14052
14053
# The build system.
14054
build_alias=$build_alias
14055
build=$build
14056
build_os=$build_os
14057
14058
# A sed program that does not truncate output.
14059
SED=$lt_SED
14060
14061
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14062
Xsed="\$SED -e 1s/^X//"
14063
14064
# A grep program that handles long lines.
14065
GREP=$lt_GREP
14066
14067
# An ERE matcher.
14068
EGREP=$lt_EGREP
14069
14070
# A literal string matcher.
14071
FGREP=$lt_FGREP
14072
14073
# A BSD- or MS-compatible name lister.
14074
NM=$lt_NM
14075
14076
# Whether we need soft or hard links.
14077
LN_S=$lt_LN_S
14078
14079
# What is the maximum length of a command?
14080
max_cmd_len=$max_cmd_len
14081
14082
# Object file suffix (normally "o").
14083
objext=$ac_objext
14084
14085
# Executable file suffix (normally "").
14086
exeext=$exeext
14087
14088
# whether the shell understands "unset".
14089
lt_unset=$lt_unset
14090
14091
# turn spaces into newlines.
14092
SP2NL=$lt_lt_SP2NL
14093
14094
# turn newlines into spaces.
14095
NL2SP=$lt_lt_NL2SP
14096
14097
# How to create reloadable object files.
14098
reload_flag=$lt_reload_flag
14099
reload_cmds=$lt_reload_cmds
14100
14101
# An object symbol dumper.
14102
OBJDUMP=$lt_OBJDUMP
14103
14104
# Method to check whether dependent libraries are shared objects.
14105
deplibs_check_method=$lt_deplibs_check_method
14106
14107
# Command to use when deplibs_check_method == "file_magic".
14108
file_magic_cmd=$lt_file_magic_cmd
14109
14110
# The archiver.
14111
AR=$lt_AR
14112
AR_FLAGS=$lt_AR_FLAGS
14113
14114
# A symbol stripping program.
14115
STRIP=$lt_STRIP
14116
14117
# Commands used to install an old-style archive.
14118
RANLIB=$lt_RANLIB
14119
old_postinstall_cmds=$lt_old_postinstall_cmds
14120
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14121
14122
# A C compiler.
14123
LTCC=$lt_CC
14124
14125
# LTCC compiler flags.
14126
LTCFLAGS=$lt_CFLAGS
14127
14128
# Take the output of nm and produce a listing of raw symbols and C names.
14129
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14130
14131
# Transform the output of nm in a proper C declaration.
14132
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14133
14134
# Transform the output of nm in a C name address pair.
14135
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14136
14137
# Transform the output of nm in a C name address pair when lib prefix is needed.
14138
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14139
14140
# The name of the directory that contains temporary libtool files.
14141
objdir=$objdir
14142
14143
# Shell to use when invoking shell scripts.
14144
SHELL=$lt_SHELL
14145
14146
# An echo program that does not interpret backslashes.
14147
ECHO=$lt_ECHO
14148
14149
# Used to examine libraries when file_magic_cmd begins with "file".
14150
MAGIC_CMD=$MAGIC_CMD
14151
14152
# Must we lock files when doing compilation?
14153
need_locks=$lt_need_locks
14154
14155
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14156
DSYMUTIL=$lt_DSYMUTIL
14157
14158
# Tool to change global to local symbols on Mac OS X.
14159
NMEDIT=$lt_NMEDIT
14160
14161
# Tool to manipulate fat objects and archives on Mac OS X.
14162
LIPO=$lt_LIPO
14163
14164
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14165
OTOOL=$lt_OTOOL
14166
14167
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14168
OTOOL64=$lt_OTOOL64
14169
14170
# Old archive suffix (normally "a").
14171
libext=$libext
14172
14173
# Shared library suffix (normally ".so").
14174
shrext_cmds=$lt_shrext_cmds
14175
14176
# The commands to extract the exported symbol list from a shared archive.
14177
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14178
14179
# Variables whose values should be saved in libtool wrapper scripts and
14180
# restored at link time.
14181
variables_saved_for_relink=$lt_variables_saved_for_relink
14182
14183
# Do we need the "lib" prefix for modules?
14184
need_lib_prefix=$need_lib_prefix
14185
14186
# Do we need a version for libraries?
14187
need_version=$need_version
14188
14189
# Library versioning type.
14190
version_type=$version_type
14191
14192
# Shared library runtime path variable.
14193
runpath_var=$runpath_var
14194
14195
# Shared library path variable.
14196
shlibpath_var=$shlibpath_var
14197
14198
# Is shlibpath searched before the hard-coded library search path?
14199
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14200
14201
# Format of library name prefix.
14202
libname_spec=$lt_libname_spec
14203
14204
# List of archive names.  First name is the real one, the rest are links.
14205
# The last name is the one that the linker finds with -lNAME
14206
library_names_spec=$lt_library_names_spec
14207
14208
# The coded name of the library, if different from the real name.
14209
soname_spec=$lt_soname_spec
14210
14211
# Command to use after installation of a shared archive.
14212
postinstall_cmds=$lt_postinstall_cmds
14213
14214
# Command to use after uninstallation of a shared archive.
14215
postuninstall_cmds=$lt_postuninstall_cmds
14216
14217
# Commands used to finish a libtool library installation in a directory.
14218
finish_cmds=$lt_finish_cmds
14219
14220
# As "finish_cmds", except a single script fragment to be evaled but
14221
# not shown.
14222
finish_eval=$lt_finish_eval
14223
14224
# Whether we should hardcode library paths into libraries.
14225
hardcode_into_libs=$hardcode_into_libs
14226
14227
# Compile-time system search path for libraries.
14228
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14229
14230
# Run-time system search path for libraries.
14231
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14232
14233
# Whether dlopen is supported.
14234
dlopen_support=$enable_dlopen
14235
14236
# Whether dlopen of programs is supported.
14237
dlopen_self=$enable_dlopen_self
14238
14239
# Whether dlopen of statically linked programs is supported.
14240
dlopen_self_static=$enable_dlopen_self_static
14241
14242
# Commands to strip libraries.
14243
old_striplib=$lt_old_striplib
14244
striplib=$lt_striplib
14245
14246
14247
# The linker used to build libraries.
14248
LD=$lt_LD
14249
14250
# Commands used to build an old-style archive.
14251
old_archive_cmds=$lt_old_archive_cmds
14252
14253
# A language specific compiler.
14254
CC=$lt_compiler
14255
14256
# Is the compiler the GNU compiler?
14257
with_gcc=$GCC
14258
14259
# Compiler flag to turn off builtin functions.
14260
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14261
14262
# How to pass a linker flag through the compiler.
14263
wl=$lt_lt_prog_compiler_wl
14264
14265
# Additional compiler flags for building library objects.
14266
pic_flag=$lt_lt_prog_compiler_pic
14267
14268
# Compiler flag to prevent dynamic linking.
14269
link_static_flag=$lt_lt_prog_compiler_static
14270
14271
# Does compiler simultaneously support -c and -o options?
14272
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14273
14274
# Whether or not to add -lc for building shared libraries.
14275
build_libtool_need_lc=$archive_cmds_need_lc
14276
14277
# Whether or not to disallow shared libs when runtime libs are static.
14278
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14279
14280
# Compiler flag to allow reflexive dlopens.
14281
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14282
14283
# Compiler flag to generate shared objects directly from archives.
14284
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14285
14286
# Whether the compiler copes with passing no objects directly.
14287
compiler_needs_object=$lt_compiler_needs_object
14288
14289
# Create an old-style archive from a shared archive.
14290
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14291
14292
# Create a temporary old-style archive to link instead of a shared archive.
14293
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14294
14295
# Commands used to build a shared archive.
14296
archive_cmds=$lt_archive_cmds
14297
archive_expsym_cmds=$lt_archive_expsym_cmds
14298
14299
# Commands used to build a loadable module if different from building
14300
# a shared archive.
14301
module_cmds=$lt_module_cmds
14302
module_expsym_cmds=$lt_module_expsym_cmds
14303
14304
# Whether we are building with GNU ld or not.
14305
with_gnu_ld=$lt_with_gnu_ld
14306
14307
# Flag that allows shared libraries with undefined symbols to be built.
14308
allow_undefined_flag=$lt_allow_undefined_flag
14309
14310
# Flag that enforces no undefined symbols.
14311
no_undefined_flag=$lt_no_undefined_flag
14312
14313
# Flag to hardcode \$libdir into a binary during linking.
14314
# This must work even if \$libdir does not exist
14315
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14316
14317
# If ld is used when linking, flag to hardcode \$libdir into a binary
14318
# during linking.  This must work even if \$libdir does not exist.
14319
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14320
14321
# Whether we need a single "-rpath" flag with a separated argument.
14322
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14323
14324
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14325
# DIR into the resulting binary.
14326
hardcode_direct=$hardcode_direct
14327
14328
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14329
# DIR into the resulting binary and the resulting library dependency is
14330
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14331
# library is relocated.
14332
hardcode_direct_absolute=$hardcode_direct_absolute
14333
14334
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14335
# into the resulting binary.
14336
hardcode_minus_L=$hardcode_minus_L
14337
14338
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14339
# into the resulting binary.
14340
hardcode_shlibpath_var=$hardcode_shlibpath_var
14341
14342
# Set to "yes" if building a shared library automatically hardcodes DIR
14343
# into the library and all subsequent libraries and executables linked
14344
# against it.
14345
hardcode_automatic=$hardcode_automatic
14346
14347
# Set to yes if linker adds runtime paths of dependent libraries
14348
# to runtime path list.
14349
inherit_rpath=$inherit_rpath
14350
14351
# Whether libtool must link a program against all its dependency libraries.
14352
link_all_deplibs=$link_all_deplibs
14353
14354
# Fix the shell variable \$srcfile for the compiler.
14355
fix_srcfile_path=$lt_fix_srcfile_path
14356
14357
# Set to "yes" if exported symbols are required.
14358
always_export_symbols=$always_export_symbols
14359
14360
# The commands to list exported symbols.
14361
export_symbols_cmds=$lt_export_symbols_cmds
14362
14363
# Symbols that should not be listed in the preloaded symbols.
14364
exclude_expsyms=$lt_exclude_expsyms
14365
14366
# Symbols that must always be exported.
14367
include_expsyms=$lt_include_expsyms
14368
14369
# Commands necessary for linking programs (against libraries) with templates.
14370
prelink_cmds=$lt_prelink_cmds
14371
14372
# Specify filename containing input files.
14373
file_list_spec=$lt_file_list_spec
14374
14375
# How to hardcode a shared library path into an executable.
14376
hardcode_action=$hardcode_action
14377
14378
# ### END LIBTOOL CONFIG
14379
14380
_LT_EOF
14381
14382
  case $host_os in
14383
  aix3*)
14384
    cat <<\_LT_EOF >> "$cfgfile"
14385
# AIX sometimes has problems with the GCC collect2 program.  For some
14386
# reason, if we set the COLLECT_NAMES environment variable, the problems
14387
# vanish in a puff of smoke.
14388
if test "X${COLLECT_NAMES+set}" != Xset; then
14389
  COLLECT_NAMES=
14390
  export COLLECT_NAMES
14391
fi
14392
_LT_EOF
14393
    ;;
14394
  esac
14395
14396
14397
ltmain="$ac_aux_dir/ltmain.sh"
14398
14399
14400
  # We use sed instead of cat because bash on DJGPP gets confused if
14401
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14402
  # text mode, it properly converts lines to CR/LF.  This bash problem
14403
  # is reportedly fixed, but why not run on old versions too?
14404
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14405
    || (rm -f "$cfgfile"; exit 1)
14406
14407
  case $xsi_shell in
14408
  yes)
14409
    cat << \_LT_EOF >> "$cfgfile"
14410
14411
# func_dirname file append nondir_replacement
14412
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14413
# otherwise set result to NONDIR_REPLACEMENT.
14414
func_dirname ()
14415
{
14416
  case ${1} in
14417
    */*) func_dirname_result="${1%/*}${2}" ;;
14418
    *  ) func_dirname_result="${3}" ;;
14419
  esac
14420
}
14421
14422
# func_basename file
14423
func_basename ()
14424
{
14425
  func_basename_result="${1##*/}"
14426
}
14427
14428
# func_dirname_and_basename file append nondir_replacement
14429
# perform func_basename and func_dirname in a single function
14430
# call:
14431
#   dirname:  Compute the dirname of FILE.  If nonempty,
14432
#             add APPEND to the result, otherwise set result
14433
#             to NONDIR_REPLACEMENT.
14434
#             value returned in "$func_dirname_result"
14435
#   basename: Compute filename of FILE.
14436
#             value retuned in "$func_basename_result"
14437
# Implementation must be kept synchronized with func_dirname
14438
# and func_basename. For efficiency, we do not delegate to
14439
# those functions but instead duplicate the functionality here.
14440
func_dirname_and_basename ()
14441
{
14442
  case ${1} in
14443
    */*) func_dirname_result="${1%/*}${2}" ;;
14444
    *  ) func_dirname_result="${3}" ;;
14445
  esac
14446
  func_basename_result="${1##*/}"
14447
}
14448
14449
# func_stripname prefix suffix name
14450
# strip PREFIX and SUFFIX off of NAME.
14451
# PREFIX and SUFFIX must not contain globbing or regex special
14452
# characters, hashes, percent signs, but SUFFIX may contain a leading
14453
# dot (in which case that matches only a dot).
14454
func_stripname ()
14455
{
14456
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14457
  # positional parameters, so assign one to ordinary parameter first.
14458
  func_stripname_result=${3}
14459
  func_stripname_result=${func_stripname_result#"${1}"}
14460
  func_stripname_result=${func_stripname_result%"${2}"}
14461
}
14462
14463
# func_opt_split
14464
func_opt_split ()
14465
{
14466
  func_opt_split_opt=${1%%=*}
14467
  func_opt_split_arg=${1#*=}
14468
}
14469
14470
# func_lo2o object
14471
func_lo2o ()
14472
{
14473
  case ${1} in
14474
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14475
    *)    func_lo2o_result=${1} ;;
14476
  esac
14477
}
14478
14479
# func_xform libobj-or-source
14480
func_xform ()
14481
{
14482
  func_xform_result=${1%.*}.lo
14483
}
14484
14485
# func_arith arithmetic-term...
14486
func_arith ()
14487
{
14488
  func_arith_result=$(( $* ))
14489
}
14490
14491
# func_len string
14492
# STRING may not start with a hyphen.
14493
func_len ()
14494
{
14495
  func_len_result=${#1}
14496
}
14497
14498
_LT_EOF
14499
    ;;
14500
  *) # Bourne compatible functions.
14501
    cat << \_LT_EOF >> "$cfgfile"
14502
14503
# func_dirname file append nondir_replacement
14504
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14505
# otherwise set result to NONDIR_REPLACEMENT.
14506
func_dirname ()
14507
{
14508
  # Extract subdirectory from the argument.
14509
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14510
  if test "X$func_dirname_result" = "X${1}"; then
14511
    func_dirname_result="${3}"
14512
  else
14513
    func_dirname_result="$func_dirname_result${2}"
14514
  fi
14515
}
14516
14517
# func_basename file
14518
func_basename ()
14519
{
14520
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14521
}
14522
14523
14524
# func_stripname prefix suffix name
14525
# strip PREFIX and SUFFIX off of NAME.
14526
# PREFIX and SUFFIX must not contain globbing or regex special
14527
# characters, hashes, percent signs, but SUFFIX may contain a leading
14528
# dot (in which case that matches only a dot).
14529
# func_strip_suffix prefix name
14530
func_stripname ()
14531
{
14532
  case ${2} in
14533
    .*) func_stripname_result=`$ECHO "X${3}" \
14534
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14535
    *)  func_stripname_result=`$ECHO "X${3}" \
14536
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14537
  esac
14538
}
14539
14540
# sed scripts:
14541
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14542
my_sed_long_arg='1s/^-[^=]*=//'
14543
14544
# func_opt_split
14545
func_opt_split ()
14546
{
14547
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14548
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14549
}
14550
14551
# func_lo2o object
14552
func_lo2o ()
14553
{
14554
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14555
}
14556
14557
# func_xform libobj-or-source
14558
func_xform ()
14559
{
14560
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14561
}
14562
14563
# func_arith arithmetic-term...
14564
func_arith ()
14565
{
14566
  func_arith_result=`expr "$@"`
14567
}
14568
14569
# func_len string
14570
# STRING may not start with a hyphen.
14571
func_len ()
14572
{
14573
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14574
}
14575
14576
_LT_EOF
14577
esac
14578
14579
case $lt_shell_append in
14580
  yes)
14581
    cat << \_LT_EOF >> "$cfgfile"
14582
14583
# func_append var value
14584
# Append VALUE to the end of shell variable VAR.
14585
func_append ()
14586
{
14587
  eval "$1+=\$2"
14588
}
14589
_LT_EOF
14590
    ;;
14591
  *)
14592
    cat << \_LT_EOF >> "$cfgfile"
14593
14594
# func_append var value
14595
# Append VALUE to the end of shell variable VAR.
14596
func_append ()
14597
{
14598
  eval "$1=\$$1\$2"
14599
}
14600
14601
_LT_EOF
14602
    ;;
14603
  esac
14604
14605
14606
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14607
    || (rm -f "$cfgfile"; exit 1)
14608
14609
  mv -f "$cfgfile" "$ofile" ||
14610
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14611
  chmod +x "$ofile"
14612
1 by Noah Slater
Import upstream version 0.7.3~svn684
14613
 ;;
14614
14615
  esac
14616
done # for ac_tag
14617
14618
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
14619
as_fn_exit 0
1 by Noah Slater
Import upstream version 0.7.3~svn684
14620
_ACEOF
14621
ac_clean_files=$ac_clean_files_save
14622
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
14623
test $ac_write_fail = 0 ||
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
14624
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
14625
1 by Noah Slater
Import upstream version 0.7.3~svn684
14626
14627
# configure is writing to config.log, and then calls config.status.
14628
# config.status does its own redirection, appending to config.log.
14629
# Unfortunately, on DOS this fails, as config.log is still kept open
14630
# by configure, so config.status won't be able to write to it; its
14631
# output is simply discarded.  So we exec the FD to /dev/null,
14632
# effectively closing config.log, so it can be properly (re)opened and
14633
# appended to by config.status.  When coming back to configure, we
14634
# need to make the FD available again.
14635
if test "$no_create" != yes; then
14636
  ac_cs_success=:
14637
  ac_config_status_args=
14638
  test "$silent" = yes &&
14639
    ac_config_status_args="$ac_config_status_args --quiet"
14640
  exec 5>/dev/null
14641
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14642
  exec 5>>config.log
14643
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14644
  # would make configure fail if this is the last instruction.
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
14645
  $ac_cs_success || as_fn_exit $?
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
14646
fi
14647
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36.1.1 by Clint Byrum
committing bug fix patch from comment https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/591444/comments/2 to bzr
14648
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
1.2.3 by Elliot Murphy
Import upstream version 0.10.0~svn809550
14649
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1 by Noah Slater
Import upstream version 0.7.3~svn684
14650
fi
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
14651
14652
14653
# *sob* - on Windows libtool fails as 'libname_spec' isn't correct (it
14654
# expects GNU style lib names).  I can't work out how to configure this
14655
# option sanely, so we pass the script through sed to modify it.
14656
# Also, the erlang cc.sh script doesn't cope well with the '-link' command
14657
# line option libtool provides.
14658
# PLEASE, someone help put this out of its misery!!
14659
# This hackery is being tracked via COUCHDB-440.
14660
if test x${IS_WINDOWS} = xTRUE; then
14661
    sed -e 's,libname_spec="lib\\$name",libname_spec="\\\$name",' \
14662
        -e 's,-link,,' \
14663
        < libtool > libtool.tmp
14664
    mv libtool.tmp libtool
14665
    # probably would chmod +x if we weren't on windows...
1.2.1 by Noah Slater
Import upstream version 0.9.0
14666
fi
1 by Noah Slater
Import upstream version 0.7.3~svn684
14667
14668
echo
1.2.1 by Noah Slater
Import upstream version 0.9.0
14669
echo "You have configured Apache CouchDB, time to relax."
1 by Noah Slater
Import upstream version 0.7.3~svn684
14670
echo
1.2.2 by Ken VanDine
Import upstream version 0.10.0~svn806985
14671
echo "Run \`make && sudo make install' to install."