clean more on distclean
[mediagoblin.git] / configure
CommitLineData
68a576e1
BI
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for mediagoblin 0.4.0.dev.
4#
5# Report bugs to <cwebber@gnu.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203else
204 as_have_required=no
205fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226fi
227fi
228 done;;
229 esac
230 as_found=false
231done
232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235fi; }
236IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and cwebber@gnu.org
269$0: about your system, including any error possibly output
270$0: before this message. Then install a modern shell, or
271$0: manually run the script under such a shell if you do
272$0: have one."
273 fi
274 exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292 { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301 return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309 set +e
310 as_fn_set_status $1
311 exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336$as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360} # as_fn_mkdir_p
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367 test -f "$1" && test -x "$1"
368} # as_fn_executable_p
369# as_fn_append VAR VALUE
370# ----------------------
371# Append the text in VALUE to the end of the definition contained in VAR. Take
372# advantage of any shell optimizations that allow amortized linear growth over
373# repeated appends, instead of the typical quadratic growth present in naive
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
389# Perform arithmetic evaluation on the ARGs, and store the result in the
390# global $as_val. Take advantage of shells that can avoid forks. The arguments
391# must be portable across $(()) and expr.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402fi # as_fn_arith
403
404
405# as_fn_error STATUS ERROR [LINENO LOG_FD]
406# ----------------------------------------
407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409# script with STATUS, using 1 if that was 0.
410as_fn_error ()
411{
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 fi
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419} # as_fn_error
420
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424else
425 as_expr=false
426fi
427
428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430else
431 as_basename=false
432fi
433
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436else
437 as_dirname=false
438fi
439
440as_me=`$as_basename -- "$0" ||
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444$as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
458
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
500}
501
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511*)
512 ECHO_N='-n';;
513esac
514
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521fi
522if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
535 fi
536else
537 as_ln_s='cp -pR'
538fi
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
541
542if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
547fi
548
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
551
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
561
562# Name of the host.
563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567#
568# Initializations.
569#
570ac_default_prefix=/usr/local
571ac_clean_files=
572ac_config_libobj_dir=.
573LIBOBJS=
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
578
579# Identity of this package.
580PACKAGE_NAME='mediagoblin'
581PACKAGE_TARNAME='mediagoblin'
582PACKAGE_VERSION='0.4.0.dev'
583PACKAGE_STRING='mediagoblin 0.4.0.dev'
584PACKAGE_BUGREPORT='cwebber@gnu.org'
585PACKAGE_URL=''
586
dc85ee8c 587ac_default_prefix=/srv/mediagoblin.example.org/mediagoblin/
68a576e1
BI
588ac_subst_vars='LTLIBOBJS
589LIBOBJS
590pkgpyexecdir
591pyexecdir
592PYTHON_EXEC_PREFIX
593pkgpythondir
594pythondir
595PYTHON_PREFIX
596POSTGRES
597SQLITE
598INSTALL_DATA
599INSTALL_SCRIPT
600INSTALL_PROGRAM
601MKDIR_P
602SPHINXBUILD
603VIRTUALENV_FLAGS
604VIRTUALENV
605PYTHON_CONFIG
606PYTHON
607target_alias
608host_alias
609build_alias
610LIBS
611ECHO_T
612ECHO_N
613ECHO_C
614DEFS
615mandir
616localedir
617libdir
618psdir
619pdfdir
620dvidir
621htmldir
622infodir
623docdir
624oldincludedir
625includedir
626localstatedir
627sharedstatedir
628sysconfdir
629datadir
630datarootdir
631libexecdir
632sbindir
633bindir
634program_transform_name
635prefix
636exec_prefix
637PACKAGE_URL
638PACKAGE_BUGREPORT
639PACKAGE_STRING
640PACKAGE_VERSION
641PACKAGE_TARNAME
642PACKAGE_NAME
643PATH_SEPARATOR
644SHELL'
645ac_subst_files=''
646ac_user_opts='
647enable_option_checking
648with_virtualenv
649'
650 ac_precious_vars='build_alias
651host_alias
652target_alias
653PYTHON
654PYTHON_CONFIG
655VIRTUALENV_FLAGS'
656
657
658# Initialize some variables set by options.
659ac_init_help=
660ac_init_version=false
661ac_unrecognized_opts=
662ac_unrecognized_sep=
663# The variables have the same names as the options, with
664# dashes changed to underlines.
665cache_file=/dev/null
666exec_prefix=NONE
667no_create=
668no_recursion=
669prefix=NONE
670program_prefix=NONE
671program_suffix=NONE
672program_transform_name=s,x,x,
673silent=
674site=
675srcdir=
676verbose=
677x_includes=NONE
678x_libraries=NONE
679
680# Installation directory options.
681# These are left unexpanded so users can "make install exec_prefix=/foo"
682# and all the variables that are supposed to be based on exec_prefix
683# by default will actually change.
684# Use braces instead of parens because sh, perl, etc. also accept them.
685# (The list follows the same order as the GNU Coding Standards.)
686bindir='${exec_prefix}/bin'
687sbindir='${exec_prefix}/sbin'
688libexecdir='${exec_prefix}/libexec'
689datarootdir='${prefix}/share'
690datadir='${datarootdir}'
691sysconfdir='${prefix}/etc'
692sharedstatedir='${prefix}/com'
693localstatedir='${prefix}/var'
694includedir='${prefix}/include'
695oldincludedir='/usr/include'
696docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
697infodir='${datarootdir}/info'
698htmldir='${docdir}'
699dvidir='${docdir}'
700pdfdir='${docdir}'
701psdir='${docdir}'
702libdir='${exec_prefix}/lib'
703localedir='${datarootdir}/locale'
704mandir='${datarootdir}/man'
705
706ac_prev=
707ac_dashdash=
708for ac_option
709do
710 # If the previous option needs an argument, assign it.
711 if test -n "$ac_prev"; then
712 eval $ac_prev=\$ac_option
713 ac_prev=
714 continue
715 fi
716
717 case $ac_option in
718 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
719 *=) ac_optarg= ;;
720 *) ac_optarg=yes ;;
721 esac
722
723 # Accept the important Cygnus configure options, so we can diagnose typos.
724
725 case $ac_dashdash$ac_option in
726 --)
727 ac_dashdash=yes ;;
728
729 -bindir | --bindir | --bindi | --bind | --bin | --bi)
730 ac_prev=bindir ;;
731 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
732 bindir=$ac_optarg ;;
733
734 -build | --build | --buil | --bui | --bu)
735 ac_prev=build_alias ;;
736 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
737 build_alias=$ac_optarg ;;
738
739 -cache-file | --cache-file | --cache-fil | --cache-fi \
740 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
741 ac_prev=cache_file ;;
742 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
743 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
744 cache_file=$ac_optarg ;;
745
746 --config-cache | -C)
747 cache_file=config.cache ;;
748
749 -datadir | --datadir | --datadi | --datad)
750 ac_prev=datadir ;;
751 -datadir=* | --datadir=* | --datadi=* | --datad=*)
752 datadir=$ac_optarg ;;
753
754 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
755 | --dataroo | --dataro | --datar)
756 ac_prev=datarootdir ;;
757 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
758 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
759 datarootdir=$ac_optarg ;;
760
761 -disable-* | --disable-*)
762 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
763 # Reject names that are not valid shell variable names.
764 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
765 as_fn_error $? "invalid feature name: $ac_useropt"
766 ac_useropt_orig=$ac_useropt
767 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
768 case $ac_user_opts in
769 *"
770"enable_$ac_useropt"
771"*) ;;
772 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
773 ac_unrecognized_sep=', ';;
774 esac
775 eval enable_$ac_useropt=no ;;
776
777 -docdir | --docdir | --docdi | --doc | --do)
778 ac_prev=docdir ;;
779 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
780 docdir=$ac_optarg ;;
781
782 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
783 ac_prev=dvidir ;;
784 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
785 dvidir=$ac_optarg ;;
786
787 -enable-* | --enable-*)
788 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
791 as_fn_error $? "invalid feature name: $ac_useropt"
792 ac_useropt_orig=$ac_useropt
793 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
794 case $ac_user_opts in
795 *"
796"enable_$ac_useropt"
797"*) ;;
798 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
799 ac_unrecognized_sep=', ';;
800 esac
801 eval enable_$ac_useropt=\$ac_optarg ;;
802
803 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
804 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
805 | --exec | --exe | --ex)
806 ac_prev=exec_prefix ;;
807 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
808 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
809 | --exec=* | --exe=* | --ex=*)
810 exec_prefix=$ac_optarg ;;
811
812 -gas | --gas | --ga | --g)
813 # Obsolete; use --with-gas.
814 with_gas=yes ;;
815
816 -help | --help | --hel | --he | -h)
817 ac_init_help=long ;;
818 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
819 ac_init_help=recursive ;;
820 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
821 ac_init_help=short ;;
822
823 -host | --host | --hos | --ho)
824 ac_prev=host_alias ;;
825 -host=* | --host=* | --hos=* | --ho=*)
826 host_alias=$ac_optarg ;;
827
828 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
829 ac_prev=htmldir ;;
830 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
831 | --ht=*)
832 htmldir=$ac_optarg ;;
833
834 -includedir | --includedir | --includedi | --included | --include \
835 | --includ | --inclu | --incl | --inc)
836 ac_prev=includedir ;;
837 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
838 | --includ=* | --inclu=* | --incl=* | --inc=*)
839 includedir=$ac_optarg ;;
840
841 -infodir | --infodir | --infodi | --infod | --info | --inf)
842 ac_prev=infodir ;;
843 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
844 infodir=$ac_optarg ;;
845
846 -libdir | --libdir | --libdi | --libd)
847 ac_prev=libdir ;;
848 -libdir=* | --libdir=* | --libdi=* | --libd=*)
849 libdir=$ac_optarg ;;
850
851 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
852 | --libexe | --libex | --libe)
853 ac_prev=libexecdir ;;
854 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
855 | --libexe=* | --libex=* | --libe=*)
856 libexecdir=$ac_optarg ;;
857
858 -localedir | --localedir | --localedi | --localed | --locale)
859 ac_prev=localedir ;;
860 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
861 localedir=$ac_optarg ;;
862
863 -localstatedir | --localstatedir | --localstatedi | --localstated \
864 | --localstate | --localstat | --localsta | --localst | --locals)
865 ac_prev=localstatedir ;;
866 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
867 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
868 localstatedir=$ac_optarg ;;
869
870 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
871 ac_prev=mandir ;;
872 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
873 mandir=$ac_optarg ;;
874
875 -nfp | --nfp | --nf)
876 # Obsolete; use --without-fp.
877 with_fp=no ;;
878
879 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
880 | --no-cr | --no-c | -n)
881 no_create=yes ;;
882
883 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
884 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
885 no_recursion=yes ;;
886
887 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
888 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
889 | --oldin | --oldi | --old | --ol | --o)
890 ac_prev=oldincludedir ;;
891 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
892 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
893 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
894 oldincludedir=$ac_optarg ;;
895
896 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
897 ac_prev=prefix ;;
898 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
899 prefix=$ac_optarg ;;
900
901 -program-prefix | --program-prefix | --program-prefi | --program-pref \
902 | --program-pre | --program-pr | --program-p)
903 ac_prev=program_prefix ;;
904 -program-prefix=* | --program-prefix=* | --program-prefi=* \
905 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
906 program_prefix=$ac_optarg ;;
907
908 -program-suffix | --program-suffix | --program-suffi | --program-suff \
909 | --program-suf | --program-su | --program-s)
910 ac_prev=program_suffix ;;
911 -program-suffix=* | --program-suffix=* | --program-suffi=* \
912 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
913 program_suffix=$ac_optarg ;;
914
915 -program-transform-name | --program-transform-name \
916 | --program-transform-nam | --program-transform-na \
917 | --program-transform-n | --program-transform- \
918 | --program-transform | --program-transfor \
919 | --program-transfo | --program-transf \
920 | --program-trans | --program-tran \
921 | --progr-tra | --program-tr | --program-t)
922 ac_prev=program_transform_name ;;
923 -program-transform-name=* | --program-transform-name=* \
924 | --program-transform-nam=* | --program-transform-na=* \
925 | --program-transform-n=* | --program-transform-=* \
926 | --program-transform=* | --program-transfor=* \
927 | --program-transfo=* | --program-transf=* \
928 | --program-trans=* | --program-tran=* \
929 | --progr-tra=* | --program-tr=* | --program-t=*)
930 program_transform_name=$ac_optarg ;;
931
932 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
933 ac_prev=pdfdir ;;
934 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
935 pdfdir=$ac_optarg ;;
936
937 -psdir | --psdir | --psdi | --psd | --ps)
938 ac_prev=psdir ;;
939 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
940 psdir=$ac_optarg ;;
941
942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
943 | -silent | --silent | --silen | --sile | --sil)
944 silent=yes ;;
945
946 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
947 ac_prev=sbindir ;;
948 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
949 | --sbi=* | --sb=*)
950 sbindir=$ac_optarg ;;
951
952 -sharedstatedir | --sharedstatedir | --sharedstatedi \
953 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
954 | --sharedst | --shareds | --shared | --share | --shar \
955 | --sha | --sh)
956 ac_prev=sharedstatedir ;;
957 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
958 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
959 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
960 | --sha=* | --sh=*)
961 sharedstatedir=$ac_optarg ;;
962
963 -site | --site | --sit)
964 ac_prev=site ;;
965 -site=* | --site=* | --sit=*)
966 site=$ac_optarg ;;
967
968 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
969 ac_prev=srcdir ;;
970 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
971 srcdir=$ac_optarg ;;
972
973 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
974 | --syscon | --sysco | --sysc | --sys | --sy)
975 ac_prev=sysconfdir ;;
976 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
977 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
978 sysconfdir=$ac_optarg ;;
979
980 -target | --target | --targe | --targ | --tar | --ta | --t)
981 ac_prev=target_alias ;;
982 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
983 target_alias=$ac_optarg ;;
984
985 -v | -verbose | --verbose | --verbos | --verbo | --verb)
986 verbose=yes ;;
987
988 -version | --version | --versio | --versi | --vers | -V)
989 ac_init_version=: ;;
990
991 -with-* | --with-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid package name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000"with_$ac_useropt"
1001"*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval with_$ac_useropt=\$ac_optarg ;;
1006
1007 -without-* | --without-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error $? "invalid package name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016"with_$ac_useropt"
1017"*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval with_$ac_useropt=no ;;
1022
1023 --x)
1024 # Obsolete; use --with-x.
1025 with_x=yes ;;
1026
1027 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1028 | --x-incl | --x-inc | --x-in | --x-i)
1029 ac_prev=x_includes ;;
1030 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1031 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1032 x_includes=$ac_optarg ;;
1033
1034 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1035 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1036 ac_prev=x_libraries ;;
1037 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1038 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1039 x_libraries=$ac_optarg ;;
1040
1041 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1042Try \`$0 --help' for more information"
1043 ;;
1044
1045 *=*)
1046 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1047 # Reject names that are not valid shell variable names.
1048 case $ac_envvar in #(
1049 '' | [0-9]* | *[!_$as_cr_alnum]* )
1050 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1051 esac
1052 eval $ac_envvar=\$ac_optarg
1053 export $ac_envvar ;;
1054
1055 *)
1056 # FIXME: should be removed in autoconf 3.0.
1057 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1058 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1060 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1061 ;;
1062
1063 esac
1064done
1065
1066if test -n "$ac_prev"; then
1067 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1068 as_fn_error $? "missing argument to $ac_option"
1069fi
1070
1071if test -n "$ac_unrecognized_opts"; then
1072 case $enable_option_checking in
1073 no) ;;
1074 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1075 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1076 esac
1077fi
1078
1079# Check all directory arguments for consistency.
1080for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1081 datadir sysconfdir sharedstatedir localstatedir includedir \
1082 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1083 libdir localedir mandir
1084do
1085 eval ac_val=\$$ac_var
1086 # Remove trailing slashes.
1087 case $ac_val in
1088 */ )
1089 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1090 eval $ac_var=\$ac_val;;
1091 esac
1092 # Be sure to have absolute directory names.
1093 case $ac_val in
1094 [\\/$]* | ?:[\\/]* ) continue;;
1095 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1096 esac
1097 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1098done
1099
1100# There might be people who depend on the old broken behavior: `$host'
1101# used to hold the argument of --host etc.
1102# FIXME: To remove some day.
1103build=$build_alias
1104host=$host_alias
1105target=$target_alias
1106
1107# FIXME: To remove some day.
1108if test "x$host_alias" != x; then
1109 if test "x$build_alias" = x; then
1110 cross_compiling=maybe
1111 elif test "x$build_alias" != "x$host_alias"; then
1112 cross_compiling=yes
1113 fi
1114fi
1115
1116ac_tool_prefix=
1117test -n "$host_alias" && ac_tool_prefix=$host_alias-
1118
1119test "$silent" = yes && exec 6>/dev/null
1120
1121
1122ac_pwd=`pwd` && test -n "$ac_pwd" &&
1123ac_ls_di=`ls -di .` &&
1124ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1125 as_fn_error $? "working directory cannot be determined"
1126test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1127 as_fn_error $? "pwd does not report name of working directory"
1128
1129
1130# Find the source files, if location was not specified.
1131if test -z "$srcdir"; then
1132 ac_srcdir_defaulted=yes
1133 # Try the directory containing this script, then the parent directory.
1134 ac_confdir=`$as_dirname -- "$as_myself" ||
1135$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1136 X"$as_myself" : 'X\(//\)[^/]' \| \
1137 X"$as_myself" : 'X\(//\)$' \| \
1138 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1139$as_echo X"$as_myself" |
1140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1141 s//\1/
1142 q
1143 }
1144 /^X\(\/\/\)[^/].*/{
1145 s//\1/
1146 q
1147 }
1148 /^X\(\/\/\)$/{
1149 s//\1/
1150 q
1151 }
1152 /^X\(\/\).*/{
1153 s//\1/
1154 q
1155 }
1156 s/.*/./; q'`
1157 srcdir=$ac_confdir
1158 if test ! -r "$srcdir/$ac_unique_file"; then
1159 srcdir=..
1160 fi
1161else
1162 ac_srcdir_defaulted=no
1163fi
1164if test ! -r "$srcdir/$ac_unique_file"; then
1165 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1166 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1167fi
1168ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1169ac_abs_confdir=`(
1170 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1171 pwd)`
1172# When building in place, set srcdir=.
1173if test "$ac_abs_confdir" = "$ac_pwd"; then
1174 srcdir=.
1175fi
1176# Remove unnecessary trailing slashes from srcdir.
1177# Double slashes in file names in object file debugging info
1178# mess up M-x gdb in Emacs.
1179case $srcdir in
1180*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1181esac
1182for ac_var in $ac_precious_vars; do
1183 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1184 eval ac_env_${ac_var}_value=\$${ac_var}
1185 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1186 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1187done
1188
1189#
1190# Report the --help message.
1191#
1192if test "$ac_init_help" = "long"; then
1193 # Omit some internal or obsolete options to make the list less imposing.
1194 # This message is too long to be a string in the A/UX 3.1 sh.
1195 cat <<_ACEOF
1196\`configure' configures mediagoblin 0.4.0.dev to adapt to many kinds of systems.
1197
1198Usage: $0 [OPTION]... [VAR=VALUE]...
1199
1200To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201VAR=VALUE. See below for descriptions of some of the useful variables.
1202
1203Defaults for the options are specified in brackets.
1204
1205Configuration:
1206 -h, --help display this help and exit
1207 --help=short display options specific to this package
1208 --help=recursive display the short help of all the included packages
1209 -V, --version display version information and exit
1210 -q, --quiet, --silent do not print \`checking ...' messages
1211 --cache-file=FILE cache test results in FILE [disabled]
1212 -C, --config-cache alias for \`--cache-file=config.cache'
1213 -n, --no-create do not create output files
1214 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1215
1216Installation directories:
1217 --prefix=PREFIX install architecture-independent files in PREFIX
1218 [$ac_default_prefix]
1219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1220 [PREFIX]
1221
1222By default, \`make install' will install all the files in
1223\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1224an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225for instance \`--prefix=\$HOME'.
1226
1227For better control, use the options below.
1228
1229Fine tuning of the installation directories:
1230 --bindir=DIR user executables [EPREFIX/bin]
1231 --sbindir=DIR system admin executables [EPREFIX/sbin]
1232 --libexecdir=DIR program executables [EPREFIX/libexec]
1233 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1234 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1235 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1236 --libdir=DIR object code libraries [EPREFIX/lib]
1237 --includedir=DIR C header files [PREFIX/include]
1238 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1239 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1240 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1241 --infodir=DIR info documentation [DATAROOTDIR/info]
1242 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1243 --mandir=DIR man documentation [DATAROOTDIR/man]
1244 --docdir=DIR documentation root [DATAROOTDIR/doc/mediagoblin]
1245 --htmldir=DIR html documentation [DOCDIR]
1246 --dvidir=DIR dvi documentation [DOCDIR]
1247 --pdfdir=DIR pdf documentation [DOCDIR]
1248 --psdir=DIR ps documentation [DOCDIR]
1249_ACEOF
1250
1251 cat <<\_ACEOF
1252_ACEOF
1253fi
1254
1255if test -n "$ac_init_help"; then
1256 case $ac_init_help in
1257 short | recursive ) echo "Configuration of mediagoblin 0.4.0.dev:";;
1258 esac
1259 cat <<\_ACEOF
1260
1261Optional Packages:
1262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1264 --with-virtualenv install to a Python virtualenv
1265
1266Some influential environment variables:
1267 PYTHON the Python interpreter
1268 PYTHON_CONFIG
1269 the Python-config program
1270 VIRTUALENV_FLAGS
1271 flags to pass to the virtualenv command
1272
1273Use these variables to override the choices made by `configure' or to help
1274it to find libraries and programs with nonstandard names/locations.
1275
1276Report bugs to <cwebber@gnu.org>.
1277_ACEOF
1278ac_status=$?
1279fi
1280
1281if test "$ac_init_help" = "recursive"; then
1282 # If there are subdirs, report their specific --help.
1283 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1284 test -d "$ac_dir" ||
1285 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1286 continue
1287 ac_builddir=.
1288
1289case "$ac_dir" in
1290.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1291*)
1292 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1293 # A ".." for each directory in $ac_dir_suffix.
1294 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1295 case $ac_top_builddir_sub in
1296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1298 esac ;;
1299esac
1300ac_abs_top_builddir=$ac_pwd
1301ac_abs_builddir=$ac_pwd$ac_dir_suffix
1302# for backward compatibility:
1303ac_top_builddir=$ac_top_build_prefix
1304
1305case $srcdir in
1306 .) # We are building in place.
1307 ac_srcdir=.
1308 ac_top_srcdir=$ac_top_builddir_sub
1309 ac_abs_top_srcdir=$ac_pwd ;;
1310 [\\/]* | ?:[\\/]* ) # Absolute name.
1311 ac_srcdir=$srcdir$ac_dir_suffix;
1312 ac_top_srcdir=$srcdir
1313 ac_abs_top_srcdir=$srcdir ;;
1314 *) # Relative name.
1315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1316 ac_top_srcdir=$ac_top_build_prefix$srcdir
1317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1318esac
1319ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1320
1321 cd "$ac_dir" || { ac_status=$?; continue; }
1322 # Check for guested configure.
1323 if test -f "$ac_srcdir/configure.gnu"; then
1324 echo &&
1325 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1326 elif test -f "$ac_srcdir/configure"; then
1327 echo &&
1328 $SHELL "$ac_srcdir/configure" --help=recursive
1329 else
1330 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1331 fi || ac_status=$?
1332 cd "$ac_pwd" || { ac_status=$?; break; }
1333 done
1334fi
1335
1336test -n "$ac_init_help" && exit $ac_status
1337if $ac_init_version; then
1338 cat <<\_ACEOF
1339mediagoblin configure 0.4.0.dev
1340generated by GNU Autoconf 2.69
1341
1342Copyright (C) 2012 Free Software Foundation, Inc.
1343This configure script is free software; the Free Software Foundation
1344gives unlimited permission to copy, distribute and modify it.
1345_ACEOF
1346 exit
1347fi
1348
1349## ------------------------ ##
1350## Autoconf initialization. ##
1351## ------------------------ ##
1352
1353# ac_fn_py_try_run LINENO
1354# -----------------------
1355# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1356# that executables *can* be run.
1357ac_fn_py_try_run ()
1358{
1359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1360 if { { ac_try="$ac_link"
1361case "(($ac_try" in
1362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1363 *) ac_try_echo=$ac_try;;
1364esac
1365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1366$as_echo "$ac_try_echo"; } >&5
1367 (eval "$ac_link") 2>&5
1368 ac_status=$?
1369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1370 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1371 { { case "(($ac_try" in
1372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1373 *) ac_try_echo=$ac_try;;
1374esac
1375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1376$as_echo "$ac_try_echo"; } >&5
1377 (eval "$ac_try") 2>&5
1378 ac_status=$?
1379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1380 test $ac_status = 0; }; }; then :
1381 ac_retval=0
1382else
1383 $as_echo "$as_me: program exited with status $ac_status" >&5
1384 $as_echo "$as_me: failed program was:" >&5
1385sed 's/^/| /' conftest.$ac_ext >&5
1386
1387 ac_retval=$ac_status
1388fi
1389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1391 as_fn_set_status $ac_retval
1392
1393} # ac_fn_py_try_run
1394cat >config.log <<_ACEOF
1395This file contains any messages produced by compilers while
1396running configure, to aid debugging if configure makes a mistake.
1397
1398It was created by mediagoblin $as_me 0.4.0.dev, which was
1399generated by GNU Autoconf 2.69. Invocation command line was
1400
1401 $ $0 $@
1402
1403_ACEOF
1404exec 5>>config.log
1405{
1406cat <<_ASUNAME
1407## --------- ##
1408## Platform. ##
1409## --------- ##
1410
1411hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1412uname -m = `(uname -m) 2>/dev/null || echo unknown`
1413uname -r = `(uname -r) 2>/dev/null || echo unknown`
1414uname -s = `(uname -s) 2>/dev/null || echo unknown`
1415uname -v = `(uname -v) 2>/dev/null || echo unknown`
1416
1417/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1418/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1419
1420/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1421/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1422/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1423/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1424/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1425/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1426/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1427
1428_ASUNAME
1429
1430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431for as_dir in $PATH
1432do
1433 IFS=$as_save_IFS
1434 test -z "$as_dir" && as_dir=.
1435 $as_echo "PATH: $as_dir"
1436 done
1437IFS=$as_save_IFS
1438
1439} >&5
1440
1441cat >&5 <<_ACEOF
1442
1443
1444## ----------- ##
1445## Core tests. ##
1446## ----------- ##
1447
1448_ACEOF
1449
1450
1451# Keep a trace of the command line.
1452# Strip out --no-create and --no-recursion so they do not pile up.
1453# Strip out --silent because we don't want to record it for future runs.
1454# Also quote any args containing shell meta-characters.
1455# Make two passes to allow for proper duplicate-argument suppression.
1456ac_configure_args=
1457ac_configure_args0=
1458ac_configure_args1=
1459ac_must_keep_next=false
1460for ac_pass in 1 2
1461do
1462 for ac_arg
1463 do
1464 case $ac_arg in
1465 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1467 | -silent | --silent | --silen | --sile | --sil)
1468 continue ;;
1469 *\'*)
1470 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1471 esac
1472 case $ac_pass in
1473 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1474 2)
1475 as_fn_append ac_configure_args1 " '$ac_arg'"
1476 if test $ac_must_keep_next = true; then
1477 ac_must_keep_next=false # Got value, back to normal.
1478 else
1479 case $ac_arg in
1480 *=* | --config-cache | -C | -disable-* | --disable-* \
1481 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1482 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1483 | -with-* | --with-* | -without-* | --without-* | --x)
1484 case "$ac_configure_args0 " in
1485 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1486 esac
1487 ;;
1488 -* ) ac_must_keep_next=true ;;
1489 esac
1490 fi
1491 as_fn_append ac_configure_args " '$ac_arg'"
1492 ;;
1493 esac
1494 done
1495done
1496{ ac_configure_args0=; unset ac_configure_args0;}
1497{ ac_configure_args1=; unset ac_configure_args1;}
1498
1499# When interrupted or exit'd, cleanup temporary files, and complete
1500# config.log. We remove comments because anyway the quotes in there
1501# would cause problems or look ugly.
1502# WARNING: Use '\'' to represent an apostrophe within the trap.
1503# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1504trap 'exit_status=$?
1505 # Save into config.log some information that might help in debugging.
1506 {
1507 echo
1508
1509 $as_echo "## ---------------- ##
1510## Cache variables. ##
1511## ---------------- ##"
1512 echo
1513 # The following way of writing the cache mishandles newlines in values,
1514(
1515 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1516 eval ac_val=\$$ac_var
1517 case $ac_val in #(
1518 *${as_nl}*)
1519 case $ac_var in #(
1520 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1521$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1522 esac
1523 case $ac_var in #(
1524 _ | IFS | as_nl) ;; #(
1525 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1526 *) { eval $ac_var=; unset $ac_var;} ;;
1527 esac ;;
1528 esac
1529 done
1530 (set) 2>&1 |
1531 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1532 *${as_nl}ac_space=\ *)
1533 sed -n \
1534 "s/'\''/'\''\\\\'\'''\''/g;
1535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1536 ;; #(
1537 *)
1538 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1539 ;;
1540 esac |
1541 sort
1542)
1543 echo
1544
1545 $as_echo "## ----------------- ##
1546## Output variables. ##
1547## ----------------- ##"
1548 echo
1549 for ac_var in $ac_subst_vars
1550 do
1551 eval ac_val=\$$ac_var
1552 case $ac_val in
1553 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1554 esac
1555 $as_echo "$ac_var='\''$ac_val'\''"
1556 done | sort
1557 echo
1558
1559 if test -n "$ac_subst_files"; then
1560 $as_echo "## ------------------- ##
1561## File substitutions. ##
1562## ------------------- ##"
1563 echo
1564 for ac_var in $ac_subst_files
1565 do
1566 eval ac_val=\$$ac_var
1567 case $ac_val in
1568 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1569 esac
1570 $as_echo "$ac_var='\''$ac_val'\''"
1571 done | sort
1572 echo
1573 fi
1574
1575 if test -s confdefs.h; then
1576 $as_echo "## ----------- ##
1577## confdefs.h. ##
1578## ----------- ##"
1579 echo
1580 cat confdefs.h
1581 echo
1582 fi
1583 test "$ac_signal" != 0 &&
1584 $as_echo "$as_me: caught signal $ac_signal"
1585 $as_echo "$as_me: exit $exit_status"
1586 } >&5
1587 rm -f core *.core core.conftest.* &&
1588 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1589 exit $exit_status
1590' 0
1591for ac_signal in 1 2 13 15; do
1592 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1593done
1594ac_signal=0
1595
1596# confdefs.h avoids OS command line length limits that DEFS can exceed.
1597rm -f -r conftest* confdefs.h
1598
1599$as_echo "/* confdefs.h */" > confdefs.h
1600
1601# Predefined preprocessor variables.
1602
1603cat >>confdefs.h <<_ACEOF
1604#define PACKAGE_NAME "$PACKAGE_NAME"
1605_ACEOF
1606
1607cat >>confdefs.h <<_ACEOF
1608#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1609_ACEOF
1610
1611cat >>confdefs.h <<_ACEOF
1612#define PACKAGE_VERSION "$PACKAGE_VERSION"
1613_ACEOF
1614
1615cat >>confdefs.h <<_ACEOF
1616#define PACKAGE_STRING "$PACKAGE_STRING"
1617_ACEOF
1618
1619cat >>confdefs.h <<_ACEOF
1620#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1621_ACEOF
1622
1623cat >>confdefs.h <<_ACEOF
1624#define PACKAGE_URL "$PACKAGE_URL"
1625_ACEOF
1626
1627
1628# Let the site file select an alternate cache file if it wants to.
1629# Prefer an explicitly selected file to automatically selected ones.
1630ac_site_file1=NONE
1631ac_site_file2=NONE
1632if test -n "$CONFIG_SITE"; then
1633 # We do not want a PATH search for config.site.
1634 case $CONFIG_SITE in #((
1635 -*) ac_site_file1=./$CONFIG_SITE;;
1636 */*) ac_site_file1=$CONFIG_SITE;;
1637 *) ac_site_file1=./$CONFIG_SITE;;
1638 esac
1639elif test "x$prefix" != xNONE; then
1640 ac_site_file1=$prefix/share/config.site
1641 ac_site_file2=$prefix/etc/config.site
1642else
1643 ac_site_file1=$ac_default_prefix/share/config.site
1644 ac_site_file2=$ac_default_prefix/etc/config.site
1645fi
1646for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1647do
1648 test "x$ac_site_file" = xNONE && continue
1649 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1651$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1652 sed 's/^/| /' "$ac_site_file" >&5
1653 . "$ac_site_file" \
1654 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1656as_fn_error $? "failed to load site script $ac_site_file
1657See \`config.log' for more details" "$LINENO" 5; }
1658 fi
1659done
1660
1661if test -r "$cache_file"; then
1662 # Some versions of bash will fail to source /dev/null (special files
1663 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1664 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1666$as_echo "$as_me: loading cache $cache_file" >&6;}
1667 case $cache_file in
1668 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1669 *) . "./$cache_file";;
1670 esac
1671 fi
1672else
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1674$as_echo "$as_me: creating cache $cache_file" >&6;}
1675 >$cache_file
1676fi
1677
1678# Check that the precious variables saved in the cache have kept the same
1679# value.
1680ac_cache_corrupted=false
1681for ac_var in $ac_precious_vars; do
1682 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1683 eval ac_new_set=\$ac_env_${ac_var}_set
1684 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1685 eval ac_new_val=\$ac_env_${ac_var}_value
1686 case $ac_old_set,$ac_new_set in
1687 set,)
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1689$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1690 ac_cache_corrupted=: ;;
1691 ,set)
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1693$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1694 ac_cache_corrupted=: ;;
1695 ,);;
1696 *)
1697 if test "x$ac_old_val" != "x$ac_new_val"; then
1698 # differences in whitespace do not lead to failure.
1699 ac_old_val_w=`echo x $ac_old_val`
1700 ac_new_val_w=`echo x $ac_new_val`
1701 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1703$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1704 ac_cache_corrupted=:
1705 else
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1707$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1708 eval $ac_var=\$ac_old_val
1709 fi
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1711$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1713$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1714 fi;;
1715 esac
1716 # Pass precious variables to config.status.
1717 if test "$ac_new_set" = set; then
1718 case $ac_new_val in
1719 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1720 *) ac_arg=$ac_var=$ac_new_val ;;
1721 esac
1722 case " $ac_configure_args " in
1723 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1724 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1725 esac
1726 fi
1727done
1728if $ac_cache_corrupted; then
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1732$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1733 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1734fi
1735## -------------------- ##
1736## Main body of script. ##
1737## -------------------- ##
1738
1739ac_ext=c
1740ac_cpp='$CPP $CPPFLAGS'
1741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1743ac_compiler_gnu=$ac_cv_c_compiler_gnu
1744
1745
1746
1747
1748
1749
dc85ee8c
BI
1750# The default prefix should be changed from /usr/local. Set it, as in
1751# the documentation, to /srv/mediagoblin.example.org/mediagoblin/
1752
1753
1754
68a576e1
BI
1755
1756
1757
1758for ac_prog in python2.7 python2.6 \
1759 \
1760python2 python
1761do
1762 # Extract the first word of "$ac_prog", so it can be a program name with args.
1763set dummy $ac_prog; ac_word=$2
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1765$as_echo_n "checking for $ac_word... " >&6; }
1766if ${ac_cv_path_PYTHON+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768else
1769 case $PYTHON in
1770 [\\/]* | ?:[\\/]*)
1771 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1772 ;;
1773 *)
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775for as_dir in $PATH
1776do
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 break 2
1784 fi
1785done
1786 done
1787IFS=$as_save_IFS
1788
1789 ;;
1790esac
1791fi
1792PYTHON=$ac_cv_path_PYTHON
1793if test -n "$PYTHON"; then
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1795$as_echo "$PYTHON" >&6; }
1796else
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1798$as_echo "no" >&6; }
1799fi
1800
1801
1802 test -n "$PYTHON" && break
1803done
1804
1805
1806
1807
1808
1809
1810
1811for ac_prog in python2.7 python2.6 \
1812 \
1813python2 python
1814do
1815 # Extract the first word of "$ac_prog", so it can be a program name with args.
1816set dummy $ac_prog; ac_word=$2
1817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1818$as_echo_n "checking for $ac_word... " >&6; }
1819if ${ac_cv_path_PYTHON+:} false; then :
1820 $as_echo_n "(cached) " >&6
1821else
1822 case $PYTHON in
1823 [\\/]* | ?:[\\/]*)
1824 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1825 ;;
1826 *)
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828for as_dir in $PATH
1829do
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1837 fi
1838done
1839 done
1840IFS=$as_save_IFS
1841
1842 ;;
1843esac
1844fi
1845PYTHON=$ac_cv_path_PYTHON
1846if test -n "$PYTHON"; then
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1848$as_echo "$PYTHON" >&6; }
1849else
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1851$as_echo "no" >&6; }
1852fi
1853
1854
1855 test -n "$PYTHON" && break
1856done
1857
1858
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Python >= '2.6'" >&5
1860$as_echo_n "checking if Python >= '2.6'... " >&6; }
1861if ${pc_cv_python_min_version_2_6+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863else
1864 ac_ext=py
1865ac_compile='chmod +x conftest.$ac_ext >&5'
1866ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
1867 if test "$cross_compiling" = yes; then :
1868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1870as_fn_error $? "cannot run test program while cross compiling
1871See \`config.log' for more details" "$LINENO" 5; }
1872else
1873 cat > conftest.$ac_ext <<_ACEOF
1874#!$PYTHON
1875import sys
1876
1877if __name__ == '__main__':
1878 # split strings by '.' and convert to numeric. Append some zeros
1879 # because we need at least 4 digits for the hex conversion.
1880 # map returns an iterator in Python 3.0 and a list in 2.x
1881 reqver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
1882 reqverhex = 0
1883 # xrange is not present in Python 3.0 and range returns an iterator
1884 for i in list(range(4)):
1885 reqverhex = (reqverhex << 8) + reqver[i]
1886 if sys.hexversion >= reqverhex:
1887 sys.exit()
1888 else:
1889 sys.exit(1)
1890
1891_ACEOF
1892if ac_fn_py_try_run "$LINENO"; then :
1893 pc_cv_python_req_version_2_6="yes"
1894else
1895 pc_cv_python_req_version_2_6="no"
1896fi
1897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1898 conftest.$ac_objext conftest.beam conftest.$ac_ext
1899fi
1900
1901 ac_ext=c
1902ac_cpp='$CPP $CPPFLAGS'
1903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1905ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906
1907fi
1908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_min_version_2_6" >&5
1909$as_echo "$pc_cv_python_min_version_2_6" >&6; }
1910if test "$pc_cv_python_req_version_2_6" = "no"; then :
1911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1913as_fn_error $? "No compatible Python interpreter found. If you're sure that you have one, try setting the PYTHON environment variable to the location of the interpreter.
1914See \`config.log' for more details" "$LINENO" 5; }
1915else
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1917$as_echo "yes" >&6; }
1918fi
1919
1920
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Python <= '2.7.99'" >&5
1922$as_echo_n "checking if Python <= '2.7.99'... " >&6; }
1923if ${pc_cv_python_min_version_2_7_99+:} false; then :
1924 $as_echo_n "(cached) " >&6
1925else
1926 ac_ext=py
1927ac_compile='chmod +x conftest.$ac_ext >&5'
1928ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
1929 if test "$cross_compiling" = yes; then :
1930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1932as_fn_error $? "cannot run test program while cross compiling
1933See \`config.log' for more details" "$LINENO" 5; }
1934else
1935 cat > conftest.$ac_ext <<_ACEOF
1936#!$PYTHON
1937import sys
1938
1939if __name__ == '__main__':
1940 # split strings by '.' and convert to numeric. Append some zeros
1941 # because we need at least 4 digits for the hex conversion.
1942 # map returns an iterator in Python 3.0 and a list in 2.x
1943 reqver = list(map(int, '2.7.99'.split('.'))) + [0, 0, 0]
1944 reqverhex = 0
1945 # xrange is not present in Python 3.0 and range returns an iterator
1946 for i in list(range(4)):
1947 reqverhex = (reqverhex << 8) + reqver[i]
1948 if sys.hexversion <= reqverhex:
1949 sys.exit()
1950 else:
1951 sys.exit(1)
1952
1953_ACEOF
1954if ac_fn_py_try_run "$LINENO"; then :
1955 pc_cv_python_req_version_2_7_99="yes"
1956else
1957 pc_cv_python_req_version_2_7_99="no"
1958fi
1959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1960 conftest.$ac_objext conftest.beam conftest.$ac_ext
1961fi
1962
1963 ac_ext=c
1964ac_cpp='$CPP $CPPFLAGS'
1965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968
1969fi
1970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_min_version_2_7_99" >&5
1971$as_echo "$pc_cv_python_min_version_2_7_99" >&6; }
1972if test "$pc_cv_python_req_version_2_7_99" = "no"; then :
1973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1975as_fn_error $? "No compatible Python interpreter found. If you're sure that you have one, try setting the PYTHON environment variable to the location of the interpreter.
1976See \`config.log' for more details" "$LINENO" 5; }
1977else
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1979$as_echo "yes" >&6; }
1980fi
1981
1982
1983
1984
1985
1986for ac_prog in python2-config `basename $PYTHON`-config
1987do
1988 # Extract the first word of "$ac_prog", so it can be a program name with args.
1989set dummy $ac_prog; ac_word=$2
1990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1991$as_echo_n "checking for $ac_word... " >&6; }
1992if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
1993 $as_echo_n "(cached) " >&6
1994else
1995 case $PYTHON_CONFIG in
1996 [\\/]* | ?:[\\/]*)
1997 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
1998 ;;
1999 *)
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 break 2
2010 fi
2011done
2012 done
2013IFS=$as_save_IFS
2014
2015 ;;
2016esac
2017fi
2018PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
2019if test -n "$PYTHON_CONFIG"; then
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
2021$as_echo "$PYTHON_CONFIG" >&6; }
2022else
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2024$as_echo "no" >&6; }
2025fi
2026
2027
2028 test -n "$PYTHON_CONFIG" && break
2029done
2030
2031
2032if [ "x$PYTHON_CONFIG" == "x" ]; then
2033
2034
2035for ac_prog in $PYTHON-config `basename $PYTHON`-config
2036do
2037 # Extract the first word of "$ac_prog", so it can be a program name with args.
2038set dummy $ac_prog; ac_word=$2
2039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2040$as_echo_n "checking for $ac_word... " >&6; }
2041if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043else
2044 case $PYTHON_CONFIG in
2045 [\\/]* | ?:[\\/]*)
2046 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
2047 ;;
2048 *)
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050for as_dir in $PATH
2051do
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 break 2
2059 fi
2060done
2061 done
2062IFS=$as_save_IFS
2063
2064 ;;
2065esac
2066fi
2067PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
2068if test -n "$PYTHON_CONFIG"; then
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
2070$as_echo "$PYTHON_CONFIG" >&6; }
2071else
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2073$as_echo "no" >&6; }
2074fi
2075
2076
2077 test -n "$PYTHON_CONFIG" && break
2078done
2079
2080
2081fi
2082
2083# Support installing to a virtualenv via the --with-virtualenv
2084# configure flag
2085
2086# Check whether --with-virtualenv was given.
2087if test "${with_virtualenv+set}" = set; then :
2088 withval=$with_virtualenv;
2089else
2090 with_virtualenv=no
2091fi
2092
2093if test "x$with_virtualenv" != xno; then :
2094 for ac_prog in virtualenv virtualenv3 virtualenv2
2095do
2096 # Extract the first word of "$ac_prog", so it can be a program name with args.
2097set dummy $ac_prog; ac_word=$2
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2099$as_echo_n "checking for $ac_word... " >&6; }
2100if ${ac_cv_prog_VIRTUALENV+:} false; then :
2101 $as_echo_n "(cached) " >&6
2102else
2103 if test -n "$VIRTUALENV"; then
2104 ac_cv_prog_VIRTUALENV="$VIRTUALENV" # Let the user override the test.
2105else
2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_VIRTUALENV="$ac_prog"
2114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 break 2
2116 fi
2117done
2118 done
2119IFS=$as_save_IFS
2120
2121fi
2122fi
2123VIRTUALENV=$ac_cv_prog_VIRTUALENV
2124if test -n "$VIRTUALENV"; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIRTUALENV" >&5
2126$as_echo "$VIRTUALENV" >&6; }
2127else
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2129$as_echo "no" >&6; }
2130fi
2131
2132
2133 test -n "$VIRTUALENV" && break
2134done
2135test -n "$VIRTUALENV" || VIRTUALENV="no"
2136
2137 if test "x$VIRTUALENV" = xno; then :
2138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140as_fn_error $? "--with-virtualenv given but virtualenv could not be found
2141See \`config.log' for more details" "$LINENO" 5; }
2142fi
2143else
2144 VIRTUALENV=no
2145
2146fi
2147
2148
2149# Check for sphinx-build
2150for ac_prog in sphinx-build sphinx-build3 sphinx-build2
2151do
2152 # Extract the first word of "$ac_prog", so it can be a program name with args.
2153set dummy $ac_prog; ac_word=$2
2154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2155$as_echo_n "checking for $ac_word... " >&6; }
2156if ${ac_cv_prog_SPHINXBUILD+:} false; then :
2157 $as_echo_n "(cached) " >&6
2158else
2159 if test -n "$SPHINXBUILD"; then
2160 ac_cv_prog_SPHINXBUILD="$SPHINXBUILD" # Let the user override the test.
2161else
2162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163for as_dir in $PATH
2164do
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169 ac_cv_prog_SPHINXBUILD="$ac_prog"
2170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 break 2
2172 fi
2173done
2174 done
2175IFS=$as_save_IFS
2176
2177fi
2178fi
2179SPHINXBUILD=$ac_cv_prog_SPHINXBUILD
2180if test -n "$SPHINXBUILD"; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINXBUILD" >&5
2182$as_echo "$SPHINXBUILD" >&6; }
2183else
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2185$as_echo "no" >&6; }
2186fi
2187
2188
2189 test -n "$SPHINXBUILD" && break
2190done
2191test -n "$SPHINXBUILD" || SPHINXBUILD="no"
2192
2193if test "x$SPHINXBUILD" = xno; then :
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sphinx-build is required to build documentation" >&5
2195$as_echo "$as_me: WARNING: sphinx-build is required to build documentation" >&2;}
2196fi
2197
2198
2199ac_aux_dir=
2200for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2201 if test -f "$ac_dir/install-sh"; then
2202 ac_aux_dir=$ac_dir
2203 ac_install_sh="$ac_aux_dir/install-sh -c"
2204 break
2205 elif test -f "$ac_dir/install.sh"; then
2206 ac_aux_dir=$ac_dir
2207 ac_install_sh="$ac_aux_dir/install.sh -c"
2208 break
2209 elif test -f "$ac_dir/shtool"; then
2210 ac_aux_dir=$ac_dir
2211 ac_install_sh="$ac_aux_dir/shtool install -c"
2212 break
2213 fi
2214done
2215if test -z "$ac_aux_dir"; then
2216 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2217fi
2218
2219# These three variables are undocumented and unsupported,
2220# and are intended to be withdrawn in a future Autoconf release.
2221# They can cause serious problems if a builder's source tree is in a directory
2222# whose full name contains unusual characters.
2223ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2224ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2225ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2226
2227
2228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2229$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2230if test -z "$MKDIR_P"; then
2231 if ${ac_cv_path_mkdir+:} false; then :
2232 $as_echo_n "(cached) " >&6
2233else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2236do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_prog in mkdir gmkdir; do
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2242 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2243 'mkdir (GNU coreutils) '* | \
2244 'mkdir (coreutils) '* | \
2245 'mkdir (fileutils) '4.1*)
2246 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2247 break 3;;
2248 esac
2249 done
2250 done
2251 done
2252IFS=$as_save_IFS
2253
2254fi
2255
2256 test -d ./--version && rmdir ./--version
2257 if test "${ac_cv_path_mkdir+set}" = set; then
2258 MKDIR_P="$ac_cv_path_mkdir -p"
2259 else
2260 # As a last resort, use the slow shell script. Don't cache a
2261 # value for MKDIR_P within a source directory, because that will
2262 # break other packages using the cache if that directory is
2263 # removed, or if the value is a relative name.
2264 MKDIR_P="$ac_install_sh -d"
2265 fi
2266fi
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2268$as_echo "$MKDIR_P" >&6; }
2269
2270# Find a good install program. We prefer a C program (faster),
2271# so one script is as good as another. But avoid the broken or
2272# incompatible versions:
2273# SysV /etc/install, /usr/sbin/install
2274# SunOS /usr/etc/install
2275# IRIX /sbin/install
2276# AIX /bin/install
2277# AmigaOS /C/install, which installs bootblocks on floppy discs
2278# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2279# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2280# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2281# OS/2's system install, which has a completely different semantic
2282# ./install, which can be erroneously created by make from ./install.sh.
2283# Reject install programs that cannot install multiple files.
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2285$as_echo_n "checking for a BSD-compatible install... " >&6; }
2286if test -z "$INSTALL"; then
2287if ${ac_cv_path_install+:} false; then :
2288 $as_echo_n "(cached) " >&6
2289else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291for as_dir in $PATH
2292do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 # Account for people who put trailing slashes in PATH elements.
2296case $as_dir/ in #((
2297 ./ | .// | /[cC]/* | \
2298 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2299 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2300 /usr/ucb/* ) ;;
2301 *)
2302 # OSF1 and SCO ODT 3.0 have their own names for install.
2303 # Don't use installbsd from OSF since it installs stuff as root
2304 # by default.
2305 for ac_prog in ginstall scoinst install; do
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2308 if test $ac_prog = install &&
2309 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310 # AIX install. It has an incompatible calling convention.
2311 :
2312 elif test $ac_prog = install &&
2313 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314 # program-specific install script used by HP pwplus--don't use.
2315 :
2316 else
2317 rm -rf conftest.one conftest.two conftest.dir
2318 echo one > conftest.one
2319 echo two > conftest.two
2320 mkdir conftest.dir
2321 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2322 test -s conftest.one && test -s conftest.two &&
2323 test -s conftest.dir/conftest.one &&
2324 test -s conftest.dir/conftest.two
2325 then
2326 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2327 break 3
2328 fi
2329 fi
2330 fi
2331 done
2332 done
2333 ;;
2334esac
2335
2336 done
2337IFS=$as_save_IFS
2338
2339rm -rf conftest.one conftest.two conftest.dir
2340
2341fi
2342 if test "${ac_cv_path_install+set}" = set; then
2343 INSTALL=$ac_cv_path_install
2344 else
2345 # As a last resort, use the slow shell script. Don't cache a
2346 # value for INSTALL within a source directory, because that will
2347 # break other packages using the cache if that directory is
2348 # removed, or if the value is a relative name.
2349 INSTALL=$ac_install_sh
2350 fi
2351fi
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2353$as_echo "$INSTALL" >&6; }
2354
2355# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2356# It thinks the first close brace ends the variable substitution.
2357test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2358
2359test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2360
2361test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2362
2363
2364# Check for a supported database program
2365# Extract the first word of "sqlite3", so it can be a program name with args.
2366set dummy sqlite3; ac_word=$2
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2368$as_echo_n "checking for $ac_word... " >&6; }
2369if ${ac_cv_path_SQLITE+:} false; then :
2370 $as_echo_n "(cached) " >&6
2371else
2372 case $SQLITE in
2373 [\\/]* | ?:[\\/]*)
2374 ac_cv_path_SQLITE="$SQLITE" # Let the user override the test with a path.
2375 ;;
2376 *)
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378for as_dir in $PATH
2379do
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2384 ac_cv_path_SQLITE="$as_dir/$ac_word$ac_exec_ext"
2385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 break 2
2387 fi
2388done
2389 done
2390IFS=$as_save_IFS
2391
2392 ;;
2393esac
2394fi
2395SQLITE=$ac_cv_path_SQLITE
2396if test -n "$SQLITE"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE" >&5
2398$as_echo "$SQLITE" >&6; }
2399else
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2401$as_echo "no" >&6; }
2402fi
2403
2404
2405# Extract the first word of "postgres", so it can be a program name with args.
2406set dummy postgres; ac_word=$2
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408$as_echo_n "checking for $ac_word... " >&6; }
2409if ${ac_cv_path_POSTGRES+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411else
2412 case $POSTGRES in
2413 [\\/]* | ?:[\\/]*)
2414 ac_cv_path_POSTGRES="$POSTGRES" # Let the user override the test with a path.
2415 ;;
2416 *)
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418for as_dir in $PATH
2419do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2424 ac_cv_path_POSTGRES="$as_dir/$ac_word$ac_exec_ext"
2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 break 2
2427 fi
2428done
2429 done
2430IFS=$as_save_IFS
2431
2432 ;;
2433esac
2434fi
2435POSTGRES=$ac_cv_path_POSTGRES
2436if test -n "$POSTGRES"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTGRES" >&5
2438$as_echo "$POSTGRES" >&6; }
2439else
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2441$as_echo "no" >&6; }
2442fi
2443
2444
f16f93be
BI
2445if test "x$SQLITE" = x -a "x$POSTGRES" = "x"; then :
2446 as_fn_error $? "SQLite or PostgreSQL is required" "$LINENO" 5
68a576e1
BI
2447fi
2448
f16f93be 2449
68a576e1
BI
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python prefix" >&5
2451$as_echo_n "checking for Python prefix... " >&6; }
2452if ${pc_cv_python_prefix+:} false; then :
2453 $as_echo_n "(cached) " >&6
2454else
2455 if test -x "$PYTHON_CONFIG"; then
2456 pc_cv_python_prefix=`$PYTHON_CONFIG --prefix 2>&5`
2457else
2458 ac_ext=py
2459ac_compile='chmod +x conftest.$ac_ext >&5'
2460ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2461 pc_cv_python_prefix=cat > conftest.$ac_ext <<_ACEOF
2462#!$PYTHON
2463import sys
2464
2465if __name__ == '__main__':
2466 sys.exit(sys.prefix)
2467
2468_ACEOF
2469 ac_ext=c
2470ac_cpp='$CPP $CPPFLAGS'
2471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2473ac_compiler_gnu=$ac_cv_c_compiler_gnu
2474fi
2475fi
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_prefix" >&5
2477$as_echo "$pc_cv_python_prefix" >&6; }
2478PYTHON_PREFIX=$pc_cv_python_prefix
2479
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages directory" >&5
2481$as_echo_n "checking for Python site-packages directory... " >&6; }
2482if ${pc_cv_python_site_dir+:} false; then :
2483 $as_echo_n "(cached) " >&6
2484else
2485 ac_ext=py
2486ac_compile='chmod +x conftest.$ac_ext >&5'
2487ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2488 if test "x$prefix" = xNONE
2489 then
2490 pc_py_prefix=$ac_default_prefix
2491 else
2492 pc_py_prefix=$prefix
2493 fi
2494 cat > conftest.$ac_ext <<_ACEOF
2495
2496 #!$PYTHON
2497import sys
2498from platform import python_implementation
2499# sysconfig in CPython 2.7 doesn't work in virtualenv
2500# <https://github.com/pypa/virtualenv/issues/118>
2501try:
2502 import sysconfig
2503except:
2504 can_use_sysconfig = False
2505else:
2506 can_use_sysconfig = True
2507if can_use_sysconfig:
2508 if python_implementation() == "CPython" and sys.version[:3] == '2.7':
2509 can_use_sysconfig = False
2510if not can_use_sysconfig:
2511 from distutils import sysconfig
2512 sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py_prefix')
2513else:
2514 sitedir = sysconfig.get_path('purelib', vars={'base':'$pc_py_prefix'})
2515
2516if __name__ == '__main__':
2517 sys.stdout.write(sitedir)
2518
2519_ACEOF
2520 pc_cv_python_site_dir=`$PYTHON conftest.py`
2521 ac_ext=c
2522ac_cpp='$CPP $CPPFLAGS'
2523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525ac_compiler_gnu=$ac_cv_c_compiler_gnu
2526 case $pc_cv_python_site_dir in
2527 $pc_py_prefix*)
2528 pc__strip_prefix=`echo "$pc_py_prefix" | sed 's|.|.|g'`
2529 pc_cv_python_site_dir=`echo "$pc_cv_python_site_dir" | sed "s,^$pc__strip_prefix/,,"`
2530 ;;
2531 *)
2532 case $pc_py_prefix in
2533 /usr|/System*) ;;
2534 *)
2535 pc_cv_python_site_dir=lib/python$PYTHON_VERSION/site-packages
2536 ;;
2537 esac
2538 ;;
2539 esac
2540
2541fi
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_site_dir" >&5
2543$as_echo "$pc_cv_python_site_dir" >&6; }
2544pythondir=\${prefix}/$pc_cv_python_site_dir
2545
2546pkgpythondir=\${pythondir}/$PACKAGE
2547
2548
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python exec-prefix" >&5
2550$as_echo_n "checking for Python exec-prefix... " >&6; }
2551if ${pc_cv_python_exec_prefix+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553else
2554 if test -x "$PYTHON_CONFIG"; then
2555 pc_cv_python_exec_prefix=`$PYTHON_CONFIG --exec-prefix 2>&5`
2556else
2557 ac_ext=py
2558ac_compile='chmod +x conftest.$ac_ext >&5'
2559ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2560 pc_cv_python_exec_prefix=cat > conftest.$ac_ext <<_ACEOF
2561#!$PYTHON
2562import sys
2563
2564if __name__ == '__main__':
2565 sys.exit(sys.exec_prefix)
2566
2567_ACEOF
2568 ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS'
2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573fi
2574
2575fi
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_exec_prefix" >&5
2577$as_echo "$pc_cv_python_exec_prefix" >&6; }
2578PYTHON_EXEC_PREFIX=$pc_cv_python_exec_prefix
2579
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python extension module directory" >&5
2581$as_echo_n "checking for Python extension module directory... " >&6; }
2582if ${pc_cv_python_exec_dir+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584else
2585 ac_ext=py
2586ac_compile='chmod +x conftest.$ac_ext >&5'
2587ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2588 if test "x$pc_cv_python_exec_prefix" = xNONE
2589 then
2590 pc_py_exec_prefix=$pc_cv_python_prefix
2591 else
2592 pc_py_exec_prefix=$pc_cv_python_exec_prefix
2593 fi
2594 cat > conftest.$ac_ext <<_ACEOF
2595
2596 #!$PYTHON
2597import sys
2598from platform import python_implementation
2599# sysconfig in CPython 2.7 doesn't work in virtualenv
2600# <https://github.com/pypa/virtualenv/issues/118>
2601try:
2602 import sysconfig
2603except:
2604 can_use_sysconfig = False
2605else:
2606 can_use_sysconfig = True
2607if can_use_sysconfig:
2608 if python_implementation() == "CPython" and sys.version[:3] == '2.7':
2609 can_use_sysconfig = False
2610if not can_use_sysconfig:
2611 from distutils import sysconfig
2612 sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py__exec_prefix')
2613else:
2614 sitedir = sysconfig.get_path('purelib', vars={'platbase':'$pc_py_exec_prefix'})
2615
2616if __name__ == '__main__':
2617 sys.stdout.write(sitedir)
2618
2619_ACEOF
2620 pc_cv_python_exec_dir=`$PYTHON conftest.py`
2621 ac_ext=c
2622ac_cpp='$CPP $CPPFLAGS'
2623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 case $pc_cv_python_exec_dir in
2627 $pc_py_exec_prefix*)
2628 pc__strip_prefix=`echo "$pc_py_exec_prefix" | sed 's|.|.|g'`
2629 pc_cv_python_exec_dir=`echo "$pc_cv_python_exec_dir" | sed "s,^$pc__strip_prefix/,,"`
2630 ;;
2631 *)
2632 case $pc_py_exec_prefix in
2633 /usr|/System*) ;;
2634 *)
2635 pc_cv_python_exec_dir=lib/python$PYTHON_VERSION/site-packages
2636 ;;
2637 esac
2638 ;;
2639 esac
2640
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_exec_dir" >&5
2643$as_echo "$pc_cv_python_exec_dir" >&6; }
2644pyexecdir=\${exec_prefix}/$pc_cv_python_pyexecdir
2645
2646pkgpyexecdir=\${pyexecdir}/$PACKAGE
2647
2648
2649
2650
2651
2652# Check for python-lxml module
2653
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 'lxml' library" >&5
2655$as_echo_n "checking for Python 'lxml' library... " >&6; }
2656if ${pc_cv_python_module_lxml+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658else
2659 ac_ext=py
2660ac_compile='chmod +x conftest.$ac_ext >&5'
2661ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2662 if test "$cross_compiling" = yes; then :
2663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665as_fn_error $? "cannot run test program while cross compiling
2666See \`config.log' for more details" "$LINENO" 5; }
2667else
2668 cat > conftest.$ac_ext <<_ACEOF
2669#!$PYTHON
2670import sys
2671try:
2672 import lxml
2673except:
2674 sys.exit(1)
2675else:
2676 sys.exit(0)
2677
2678
2679_ACEOF
2680if ac_fn_py_try_run "$LINENO"; then :
2681 pc_cv_python_module_lxml="yes"
2682else
2683 pc_cv_python_module_lxml="no"
2684fi
2685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2686 conftest.$ac_objext conftest.beam conftest.$ac_ext
2687fi
2688
2689 ac_ext=c
2690ac_cpp='$CPP $CPPFLAGS'
2691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694
2695fi
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_module_lxml" >&5
2697$as_echo "$pc_cv_python_module_lxml" >&6; }
2698if test "$pc_cv_python_module_lxml" = "no"; then :
2699 as_fn_error $? "python-lxml is required" "$LINENO" 5
2700fi
2701
2702
2703# Check for the Python Imaging Library
2704
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 'Image' library" >&5
2706$as_echo_n "checking for Python 'Image' library... " >&6; }
2707if ${pc_cv_python_module_Image+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709else
2710 ac_ext=py
2711ac_compile='chmod +x conftest.$ac_ext >&5'
2712ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2713 if test "$cross_compiling" = yes; then :
2714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716as_fn_error $? "cannot run test program while cross compiling
2717See \`config.log' for more details" "$LINENO" 5; }
2718else
2719 cat > conftest.$ac_ext <<_ACEOF
2720#!$PYTHON
2721import sys
2722try:
2723 import Image
2724except:
2725 sys.exit(1)
2726else:
2727 sys.exit(0)
2728
2729
2730_ACEOF
2731if ac_fn_py_try_run "$LINENO"; then :
2732 pc_cv_python_module_Image="yes"
2733else
2734 pc_cv_python_module_Image="no"
2735fi
2736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2737 conftest.$ac_objext conftest.beam conftest.$ac_ext
2738fi
2739
2740 ac_ext=c
2741ac_cpp='$CPP $CPPFLAGS'
2742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745
2746fi
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_module_Image" >&5
2748$as_echo "$pc_cv_python_module_Image" >&6; }
2749if test "$pc_cv_python_module_Image" = "no"; then :
2750 as_fn_error $? "Python Imaging Library is required" "$LINENO" 5
2751fi
2752
2753
2754
2755
2756ac_config_files="$ac_config_files Makefile setup.py"
2757
2758cat >confcache <<\_ACEOF
2759# This file is a shell script that caches the results of configure
2760# tests run on this system so they can be shared between configure
2761# scripts and configure runs, see configure's option --config-cache.
2762# It is not useful on other systems. If it contains results you don't
2763# want to keep, you may remove or edit it.
2764#
2765# config.status only pays attention to the cache file if you give it
2766# the --recheck option to rerun configure.
2767#
2768# `ac_cv_env_foo' variables (set or unset) will be overridden when
2769# loading this file, other *unset* `ac_cv_foo' will be assigned the
2770# following values.
2771
2772_ACEOF
2773
2774# The following way of writing the cache mishandles newlines in values,
2775# but we know of no workaround that is simple, portable, and efficient.
2776# So, we kill variables containing newlines.
2777# Ultrix sh set writes to stderr and can't be redirected directly,
2778# and sets the high bit in the cache file unless we assign to the vars.
2779(
2780 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2781 eval ac_val=\$$ac_var
2782 case $ac_val in #(
2783 *${as_nl}*)
2784 case $ac_var in #(
2785 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2786$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2787 esac
2788 case $ac_var in #(
2789 _ | IFS | as_nl) ;; #(
2790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2791 *) { eval $ac_var=; unset $ac_var;} ;;
2792 esac ;;
2793 esac
2794 done
2795
2796 (set) 2>&1 |
2797 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2798 *${as_nl}ac_space=\ *)
2799 # `set' does not quote correctly, so add quotes: double-quote
2800 # substitution turns \\\\ into \\, and sed turns \\ into \.
2801 sed -n \
2802 "s/'/'\\\\''/g;
2803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2804 ;; #(
2805 *)
2806 # `set' quotes correctly as required by POSIX, so do not add quotes.
2807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2808 ;;
2809 esac |
2810 sort
2811) |
2812 sed '
2813 /^ac_cv_env_/b end
2814 t clear
2815 :clear
2816 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2817 t end
2818 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2819 :end' >>confcache
2820if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2821 if test -w "$cache_file"; then
2822 if test "x$cache_file" != "x/dev/null"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2824$as_echo "$as_me: updating cache $cache_file" >&6;}
2825 if test ! -f "$cache_file" || test -h "$cache_file"; then
2826 cat confcache >"$cache_file"
2827 else
2828 case $cache_file in #(
2829 */* | ?:*)
2830 mv -f confcache "$cache_file"$$ &&
2831 mv -f "$cache_file"$$ "$cache_file" ;; #(
2832 *)
2833 mv -f confcache "$cache_file" ;;
2834 esac
2835 fi
2836 fi
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2839$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2840 fi
2841fi
2842rm -f confcache
2843
2844test "x$prefix" = xNONE && prefix=$ac_default_prefix
2845# Let make expand exec_prefix.
2846test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2847
2848# Transform confdefs.h into DEFS.
2849# Protect against shell expansion while executing Makefile rules.
2850# Protect against Makefile macro expansion.
2851#
2852# If the first sed substitution is executed (which looks for macros that
2853# take arguments), then branch to the quote section. Otherwise,
2854# look for a macro that doesn't take arguments.
2855ac_script='
2856:mline
2857/\\$/{
2858 N
2859 s,\\\n,,
2860 b mline
2861}
2862t clear
2863:clear
2864s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2865t quote
2866s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2867t quote
2868b any
2869:quote
2870s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2871s/\[/\\&/g
2872s/\]/\\&/g
2873s/\$/$$/g
2874H
2875:any
2876${
2877 g
2878 s/^\n//
2879 s/\n/ /g
2880 p
2881}
2882'
2883DEFS=`sed -n "$ac_script" confdefs.h`
2884
2885
2886ac_libobjs=
2887ac_ltlibobjs=
2888U=
2889for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2890 # 1. Remove the extension, and $U if already installed.
2891 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2892 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2893 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2894 # will be set to the directory where LIBOBJS objects are built.
2895 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2896 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2897done
2898LIBOBJS=$ac_libobjs
2899
2900LTLIBOBJS=$ac_ltlibobjs
2901
2902
2903
2904: "${CONFIG_STATUS=./config.status}"
2905ac_write_fail=0
2906ac_clean_files_save=$ac_clean_files
2907ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2909$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2910as_write_fail=0
2911cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2912#! $SHELL
2913# Generated by $as_me.
2914# Run this file to recreate the current configuration.
2915# Compiler output produced by configure, useful for debugging
2916# configure, is in config.log if it exists.
2917
2918debug=false
2919ac_cs_recheck=false
2920ac_cs_silent=false
2921
2922SHELL=\${CONFIG_SHELL-$SHELL}
2923export SHELL
2924_ASEOF
2925cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2926## -------------------- ##
2927## M4sh Initialization. ##
2928## -------------------- ##
2929
2930# Be more Bourne compatible
2931DUALCASE=1; export DUALCASE # for MKS sh
2932if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2933 emulate sh
2934 NULLCMD=:
2935 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2936 # is contrary to our usage. Disable this feature.
2937 alias -g '${1+"$@"}'='"$@"'
2938 setopt NO_GLOB_SUBST
2939else
2940 case `(set -o) 2>/dev/null` in #(
2941 *posix*) :
2942 set -o posix ;; #(
2943 *) :
2944 ;;
2945esac
2946fi
2947
2948
2949as_nl='
2950'
2951export as_nl
2952# Printing a long string crashes Solaris 7 /usr/bin/printf.
2953as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2954as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2955as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2956# Prefer a ksh shell builtin over an external printf program on Solaris,
2957# but without wasting forks for bash or zsh.
2958if test -z "$BASH_VERSION$ZSH_VERSION" \
2959 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2960 as_echo='print -r --'
2961 as_echo_n='print -rn --'
2962elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2963 as_echo='printf %s\n'
2964 as_echo_n='printf %s'
2965else
2966 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2967 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2968 as_echo_n='/usr/ucb/echo -n'
2969 else
2970 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2971 as_echo_n_body='eval
2972 arg=$1;
2973 case $arg in #(
2974 *"$as_nl"*)
2975 expr "X$arg" : "X\\(.*\\)$as_nl";
2976 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2977 esac;
2978 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2979 '
2980 export as_echo_n_body
2981 as_echo_n='sh -c $as_echo_n_body as_echo'
2982 fi
2983 export as_echo_body
2984 as_echo='sh -c $as_echo_body as_echo'
2985fi
2986
2987# The user is always right.
2988if test "${PATH_SEPARATOR+set}" != set; then
2989 PATH_SEPARATOR=:
2990 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2991 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2992 PATH_SEPARATOR=';'
2993 }
2994fi
2995
2996
2997# IFS
2998# We need space, tab and new line, in precisely that order. Quoting is
2999# there to prevent editors from complaining about space-tab.
3000# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3001# splitting by setting IFS to empty value.)
3002IFS=" "" $as_nl"
3003
3004# Find who we are. Look in the path if we contain no directory separator.
3005as_myself=
3006case $0 in #((
3007 *[\\/]* ) as_myself=$0 ;;
3008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3014 done
3015IFS=$as_save_IFS
3016
3017 ;;
3018esac
3019# We did not find ourselves, most probably we were run as `sh COMMAND'
3020# in which case we are not to be found in the path.
3021if test "x$as_myself" = x; then
3022 as_myself=$0
3023fi
3024if test ! -f "$as_myself"; then
3025 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3026 exit 1
3027fi
3028
3029# Unset variables that we do not need and which cause bugs (e.g. in
3030# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3031# suppresses any "Segmentation fault" message there. '((' could
3032# trigger a bug in pdksh 5.2.14.
3033for as_var in BASH_ENV ENV MAIL MAILPATH
3034do eval test x\${$as_var+set} = xset \
3035 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3036done
3037PS1='$ '
3038PS2='> '
3039PS4='+ '
3040
3041# NLS nuisances.
3042LC_ALL=C
3043export LC_ALL
3044LANGUAGE=C
3045export LANGUAGE
3046
3047# CDPATH.
3048(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3049
3050
3051# as_fn_error STATUS ERROR [LINENO LOG_FD]
3052# ----------------------------------------
3053# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3054# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3055# script with STATUS, using 1 if that was 0.
3056as_fn_error ()
3057{
3058 as_status=$1; test $as_status -eq 0 && as_status=1
3059 if test "$4"; then
3060 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3061 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3062 fi
3063 $as_echo "$as_me: error: $2" >&2
3064 as_fn_exit $as_status
3065} # as_fn_error
3066
3067
3068# as_fn_set_status STATUS
3069# -----------------------
3070# Set $? to STATUS, without forking.
3071as_fn_set_status ()
3072{
3073 return $1
3074} # as_fn_set_status
3075
3076# as_fn_exit STATUS
3077# -----------------
3078# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3079as_fn_exit ()
3080{
3081 set +e
3082 as_fn_set_status $1
3083 exit $1
3084} # as_fn_exit
3085
3086# as_fn_unset VAR
3087# ---------------
3088# Portably unset VAR.
3089as_fn_unset ()
3090{
3091 { eval $1=; unset $1;}
3092}
3093as_unset=as_fn_unset
3094# as_fn_append VAR VALUE
3095# ----------------------
3096# Append the text in VALUE to the end of the definition contained in VAR. Take
3097# advantage of any shell optimizations that allow amortized linear growth over
3098# repeated appends, instead of the typical quadratic growth present in naive
3099# implementations.
3100if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3101 eval 'as_fn_append ()
3102 {
3103 eval $1+=\$2
3104 }'
3105else
3106 as_fn_append ()
3107 {
3108 eval $1=\$$1\$2
3109 }
3110fi # as_fn_append
3111
3112# as_fn_arith ARG...
3113# ------------------
3114# Perform arithmetic evaluation on the ARGs, and store the result in the
3115# global $as_val. Take advantage of shells that can avoid forks. The arguments
3116# must be portable across $(()) and expr.
3117if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3118 eval 'as_fn_arith ()
3119 {
3120 as_val=$(( $* ))
3121 }'
3122else
3123 as_fn_arith ()
3124 {
3125 as_val=`expr "$@" || test $? -eq 1`
3126 }
3127fi # as_fn_arith
3128
3129
3130if expr a : '\(a\)' >/dev/null 2>&1 &&
3131 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3132 as_expr=expr
3133else
3134 as_expr=false
3135fi
3136
3137if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3138 as_basename=basename
3139else
3140 as_basename=false
3141fi
3142
3143if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3144 as_dirname=dirname
3145else
3146 as_dirname=false
3147fi
3148
3149as_me=`$as_basename -- "$0" ||
3150$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3151 X"$0" : 'X\(//\)$' \| \
3152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3153$as_echo X/"$0" |
3154 sed '/^.*\/\([^/][^/]*\)\/*$/{
3155 s//\1/
3156 q
3157 }
3158 /^X\/\(\/\/\)$/{
3159 s//\1/
3160 q
3161 }
3162 /^X\/\(\/\).*/{
3163 s//\1/
3164 q
3165 }
3166 s/.*/./; q'`
3167
3168# Avoid depending upon Character Ranges.
3169as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3170as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3171as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3172as_cr_digits='0123456789'
3173as_cr_alnum=$as_cr_Letters$as_cr_digits
3174
3175ECHO_C= ECHO_N= ECHO_T=
3176case `echo -n x` in #(((((
3177-n*)
3178 case `echo 'xy\c'` in
3179 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3180 xy) ECHO_C='\c';;
3181 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3182 ECHO_T=' ';;
3183 esac;;
3184*)
3185 ECHO_N='-n';;
3186esac
3187
3188rm -f conf$$ conf$$.exe conf$$.file
3189if test -d conf$$.dir; then
3190 rm -f conf$$.dir/conf$$.file
3191else
3192 rm -f conf$$.dir
3193 mkdir conf$$.dir 2>/dev/null
3194fi
3195if (echo >conf$$.file) 2>/dev/null; then
3196 if ln -s conf$$.file conf$$ 2>/dev/null; then
3197 as_ln_s='ln -s'
3198 # ... but there are two gotchas:
3199 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3200 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3201 # In both cases, we have to default to `cp -pR'.
3202 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3203 as_ln_s='cp -pR'
3204 elif ln conf$$.file conf$$ 2>/dev/null; then
3205 as_ln_s=ln
3206 else
3207 as_ln_s='cp -pR'
3208 fi
3209else
3210 as_ln_s='cp -pR'
3211fi
3212rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3213rmdir conf$$.dir 2>/dev/null
3214
3215
3216# as_fn_mkdir_p
3217# -------------
3218# Create "$as_dir" as a directory, including parents if necessary.
3219as_fn_mkdir_p ()
3220{
3221
3222 case $as_dir in #(
3223 -*) as_dir=./$as_dir;;
3224 esac
3225 test -d "$as_dir" || eval $as_mkdir_p || {
3226 as_dirs=
3227 while :; do
3228 case $as_dir in #(
3229 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3230 *) as_qdir=$as_dir;;
3231 esac
3232 as_dirs="'$as_qdir' $as_dirs"
3233 as_dir=`$as_dirname -- "$as_dir" ||
3234$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3235 X"$as_dir" : 'X\(//\)[^/]' \| \
3236 X"$as_dir" : 'X\(//\)$' \| \
3237 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3238$as_echo X"$as_dir" |
3239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3240 s//\1/
3241 q
3242 }
3243 /^X\(\/\/\)[^/].*/{
3244 s//\1/
3245 q
3246 }
3247 /^X\(\/\/\)$/{
3248 s//\1/
3249 q
3250 }
3251 /^X\(\/\).*/{
3252 s//\1/
3253 q
3254 }
3255 s/.*/./; q'`
3256 test -d "$as_dir" && break
3257 done
3258 test -z "$as_dirs" || eval "mkdir $as_dirs"
3259 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3260
3261
3262} # as_fn_mkdir_p
3263if mkdir -p . 2>/dev/null; then
3264 as_mkdir_p='mkdir -p "$as_dir"'
3265else
3266 test -d ./-p && rmdir ./-p
3267 as_mkdir_p=false
3268fi
3269
3270
3271# as_fn_executable_p FILE
3272# -----------------------
3273# Test if FILE is an executable regular file.
3274as_fn_executable_p ()
3275{
3276 test -f "$1" && test -x "$1"
3277} # as_fn_executable_p
3278as_test_x='test -x'
3279as_executable_p=as_fn_executable_p
3280
3281# Sed expression to map a string onto a valid CPP name.
3282as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3283
3284# Sed expression to map a string onto a valid variable name.
3285as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3286
3287
3288exec 6>&1
3289## ----------------------------------- ##
3290## Main body of $CONFIG_STATUS script. ##
3291## ----------------------------------- ##
3292_ASEOF
3293test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3294
3295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3296# Save the log message, to keep $0 and so on meaningful, and to
3297# report actual input values of CONFIG_FILES etc. instead of their
3298# values after options handling.
3299ac_log="
3300This file was extended by mediagoblin $as_me 0.4.0.dev, which was
3301generated by GNU Autoconf 2.69. Invocation command line was
3302
3303 CONFIG_FILES = $CONFIG_FILES
3304 CONFIG_HEADERS = $CONFIG_HEADERS
3305 CONFIG_LINKS = $CONFIG_LINKS
3306 CONFIG_COMMANDS = $CONFIG_COMMANDS
3307 $ $0 $@
3308
3309on `(hostname || uname -n) 2>/dev/null | sed 1q`
3310"
3311
3312_ACEOF
3313
3314case $ac_config_files in *"
3315"*) set x $ac_config_files; shift; ac_config_files=$*;;
3316esac
3317
3318
3319
3320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3321# Files that config.status was made for.
3322config_files="$ac_config_files"
3323
3324_ACEOF
3325
3326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3327ac_cs_usage="\
3328\`$as_me' instantiates files and other configuration actions
3329from templates according to the current configuration. Unless the files
3330and actions are specified as TAGs, all are instantiated by default.
3331
3332Usage: $0 [OPTION]... [TAG]...
3333
3334 -h, --help print this help, then exit
3335 -V, --version print version number and configuration settings, then exit
3336 --config print configuration, then exit
3337 -q, --quiet, --silent
3338 do not print progress messages
3339 -d, --debug don't remove temporary files
3340 --recheck update $as_me by reconfiguring in the same conditions
3341 --file=FILE[:TEMPLATE]
3342 instantiate the configuration file FILE
3343
3344Configuration files:
3345$config_files
3346
3347Report bugs to <cwebber@gnu.org>."
3348
3349_ACEOF
3350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3351ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3352ac_cs_version="\\
3353mediagoblin config.status 0.4.0.dev
3354configured by $0, generated by GNU Autoconf 2.69,
3355 with options \\"\$ac_cs_config\\"
3356
3357Copyright (C) 2012 Free Software Foundation, Inc.
3358This config.status script is free software; the Free Software Foundation
3359gives unlimited permission to copy, distribute and modify it."
3360
3361ac_pwd='$ac_pwd'
3362srcdir='$srcdir'
3363INSTALL='$INSTALL'
3364MKDIR_P='$MKDIR_P'
3365test -n "\$AWK" || AWK=awk
3366_ACEOF
3367
3368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3369# The default lists apply if the user does not specify any file.
3370ac_need_defaults=:
3371while test $# != 0
3372do
3373 case $1 in
3374 --*=?*)
3375 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3376 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3377 ac_shift=:
3378 ;;
3379 --*=)
3380 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3381 ac_optarg=
3382 ac_shift=:
3383 ;;
3384 *)
3385 ac_option=$1
3386 ac_optarg=$2
3387 ac_shift=shift
3388 ;;
3389 esac
3390
3391 case $ac_option in
3392 # Handling of the options.
3393 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3394 ac_cs_recheck=: ;;
3395 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3396 $as_echo "$ac_cs_version"; exit ;;
3397 --config | --confi | --conf | --con | --co | --c )
3398 $as_echo "$ac_cs_config"; exit ;;
3399 --debug | --debu | --deb | --de | --d | -d )
3400 debug=: ;;
3401 --file | --fil | --fi | --f )
3402 $ac_shift
3403 case $ac_optarg in
3404 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3405 '') as_fn_error $? "missing file argument" ;;
3406 esac
3407 as_fn_append CONFIG_FILES " '$ac_optarg'"
3408 ac_need_defaults=false;;
3409 --he | --h | --help | --hel | -h )
3410 $as_echo "$ac_cs_usage"; exit ;;
3411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3413 ac_cs_silent=: ;;
3414
3415 # This is an error.
3416 -*) as_fn_error $? "unrecognized option: \`$1'
3417Try \`$0 --help' for more information." ;;
3418
3419 *) as_fn_append ac_config_targets " $1"
3420 ac_need_defaults=false ;;
3421
3422 esac
3423 shift
3424done
3425
3426ac_configure_extra_args=
3427
3428if $ac_cs_silent; then
3429 exec 6>/dev/null
3430 ac_configure_extra_args="$ac_configure_extra_args --silent"
3431fi
3432
3433_ACEOF
3434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3435if \$ac_cs_recheck; then
3436 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3437 shift
3438 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3439 CONFIG_SHELL='$SHELL'
3440 export CONFIG_SHELL
3441 exec "\$@"
3442fi
3443
3444_ACEOF
3445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3446exec 5>>config.log
3447{
3448 echo
3449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3450## Running $as_me. ##
3451_ASBOX
3452 $as_echo "$ac_log"
3453} >&5
3454
3455_ACEOF
3456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3457_ACEOF
3458
3459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3460
3461# Handling of arguments.
3462for ac_config_target in $ac_config_targets
3463do
3464 case $ac_config_target in
3465 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3466 "setup.py") CONFIG_FILES="$CONFIG_FILES setup.py" ;;
3467
3468 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3469 esac
3470done
3471
3472
3473# If the user did not use the arguments to specify the items to instantiate,
3474# then the envvar interface is used. Set only those that are not.
3475# We use the long form for the default assignment because of an extremely
3476# bizarre bug on SunOS 4.1.3.
3477if $ac_need_defaults; then
3478 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3479fi
3480
3481# Have a temporary directory for convenience. Make it in the build tree
3482# simply because there is no reason against having it here, and in addition,
3483# creating and moving files from /tmp can sometimes cause problems.
3484# Hook for its removal unless debugging.
3485# Note that there is a small window in which the directory will not be cleaned:
3486# after its creation but before its name has been assigned to `$tmp'.
3487$debug ||
3488{
3489 tmp= ac_tmp=
3490 trap 'exit_status=$?
3491 : "${ac_tmp:=$tmp}"
3492 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3493' 0
3494 trap 'as_fn_exit 1' 1 2 13 15
3495}
3496# Create a (secure) tmp directory for tmp files.
3497
3498{
3499 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3500 test -d "$tmp"
3501} ||
3502{
3503 tmp=./conf$$-$RANDOM
3504 (umask 077 && mkdir "$tmp")
3505} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3506ac_tmp=$tmp
3507
3508# Set up the scripts for CONFIG_FILES section.
3509# No need to generate them if there are no CONFIG_FILES.
3510# This happens for instance with `./config.status config.h'.
3511if test -n "$CONFIG_FILES"; then
3512
3513
3514ac_cr=`echo X | tr X '\015'`
3515# On cygwin, bash can eat \r inside `` if the user requested igncr.
3516# But we know of no other shell where ac_cr would be empty at this
3517# point, so we can use a bashism as a fallback.
3518if test "x$ac_cr" = x; then
3519 eval ac_cr=\$\'\\r\'
3520fi
3521ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3522if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3523 ac_cs_awk_cr='\\r'
3524else
3525 ac_cs_awk_cr=$ac_cr
3526fi
3527
3528echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3529_ACEOF
3530
3531
3532{
3533 echo "cat >conf$$subs.awk <<_ACEOF" &&
3534 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3535 echo "_ACEOF"
3536} >conf$$subs.sh ||
3537 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3538ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3539ac_delim='%!_!# '
3540for ac_last_try in false false false false false :; do
3541 . ./conf$$subs.sh ||
3542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3543
3544 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3545 if test $ac_delim_n = $ac_delim_num; then
3546 break
3547 elif $ac_last_try; then
3548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3549 else
3550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3551 fi
3552done
3553rm -f conf$$subs.sh
3554
3555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3556cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3557_ACEOF
3558sed -n '
3559h
3560s/^/S["/; s/!.*/"]=/
3561p
3562g
3563s/^[^!]*!//
3564:repl
3565t repl
3566s/'"$ac_delim"'$//
3567t delim
3568:nl
3569h
3570s/\(.\{148\}\)..*/\1/
3571t more1
3572s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3573p
3574n
3575b repl
3576:more1
3577s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3578p
3579g
3580s/.\{148\}//
3581t nl
3582:delim
3583h
3584s/\(.\{148\}\)..*/\1/
3585t more2
3586s/["\\]/\\&/g; s/^/"/; s/$/"/
3587p
3588b
3589:more2
3590s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3591p
3592g
3593s/.\{148\}//
3594t delim
3595' <conf$$subs.awk | sed '
3596/^[^""]/{
3597 N
3598 s/\n//
3599}
3600' >>$CONFIG_STATUS || ac_write_fail=1
3601rm -f conf$$subs.awk
3602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3603_ACAWK
3604cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3605 for (key in S) S_is_set[key] = 1
3606 FS = "\a"
3607
3608}
3609{
3610 line = $ 0
3611 nfields = split(line, field, "@")
3612 substed = 0
3613 len = length(field[1])
3614 for (i = 2; i < nfields; i++) {
3615 key = field[i]
3616 keylen = length(key)
3617 if (S_is_set[key]) {
3618 value = S[key]
3619 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3620 len += length(value) + length(field[++i])
3621 substed = 1
3622 } else
3623 len += 1 + keylen
3624 }
3625
3626 print line
3627}
3628
3629_ACAWK
3630_ACEOF
3631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3632if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3633 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3634else
3635 cat
3636fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3637 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3638_ACEOF
3639
3640# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3641# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3642# trailing colons and then remove the whole line if VPATH becomes empty
3643# (actually we leave an empty line to preserve line numbers).
3644if test "x$srcdir" = x.; then
3645 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3646h
3647s///
3648s/^/:/
3649s/[ ]*$/:/
3650s/:\$(srcdir):/:/g
3651s/:\${srcdir}:/:/g
3652s/:@srcdir@:/:/g
3653s/^:*//
3654s/:*$//
3655x
3656s/\(=[ ]*\).*/\1/
3657G
3658s/\n//
3659s/^[^=]*=[ ]*$//
3660}'
3661fi
3662
3663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3664fi # test -n "$CONFIG_FILES"
3665
3666
3667eval set X " :F $CONFIG_FILES "
3668shift
3669for ac_tag
3670do
3671 case $ac_tag in
3672 :[FHLC]) ac_mode=$ac_tag; continue;;
3673 esac
3674 case $ac_mode$ac_tag in
3675 :[FHL]*:*);;
3676 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3677 :[FH]-) ac_tag=-:-;;
3678 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3679 esac
3680 ac_save_IFS=$IFS
3681 IFS=:
3682 set x $ac_tag
3683 IFS=$ac_save_IFS
3684 shift
3685 ac_file=$1
3686 shift
3687
3688 case $ac_mode in
3689 :L) ac_source=$1;;
3690 :[FH])
3691 ac_file_inputs=
3692 for ac_f
3693 do
3694 case $ac_f in
3695 -) ac_f="$ac_tmp/stdin";;
3696 *) # Look for the file first in the build tree, then in the source tree
3697 # (if the path is not absolute). The absolute path cannot be DOS-style,
3698 # because $ac_f cannot contain `:'.
3699 test -f "$ac_f" ||
3700 case $ac_f in
3701 [\\/$]*) false;;
3702 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3703 esac ||
3704 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3705 esac
3706 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3707 as_fn_append ac_file_inputs " '$ac_f'"
3708 done
3709
3710 # Let's still pretend it is `configure' which instantiates (i.e., don't
3711 # use $as_me), people would be surprised to read:
3712 # /* config.h. Generated by config.status. */
3713 configure_input='Generated from '`
3714 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3715 `' by configure.'
3716 if test x"$ac_file" != x-; then
3717 configure_input="$ac_file. $configure_input"
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3719$as_echo "$as_me: creating $ac_file" >&6;}
3720 fi
3721 # Neutralize special characters interpreted by sed in replacement strings.
3722 case $configure_input in #(
3723 *\&* | *\|* | *\\* )
3724 ac_sed_conf_input=`$as_echo "$configure_input" |
3725 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3726 *) ac_sed_conf_input=$configure_input;;
3727 esac
3728
3729 case $ac_tag in
3730 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3732 esac
3733 ;;
3734 esac
3735
3736 ac_dir=`$as_dirname -- "$ac_file" ||
3737$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3738 X"$ac_file" : 'X\(//\)[^/]' \| \
3739 X"$ac_file" : 'X\(//\)$' \| \
3740 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3741$as_echo X"$ac_file" |
3742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3743 s//\1/
3744 q
3745 }
3746 /^X\(\/\/\)[^/].*/{
3747 s//\1/
3748 q
3749 }
3750 /^X\(\/\/\)$/{
3751 s//\1/
3752 q
3753 }
3754 /^X\(\/\).*/{
3755 s//\1/
3756 q
3757 }
3758 s/.*/./; q'`
3759 as_dir="$ac_dir"; as_fn_mkdir_p
3760 ac_builddir=.
3761
3762case "$ac_dir" in
3763.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3764*)
3765 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3766 # A ".." for each directory in $ac_dir_suffix.
3767 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3768 case $ac_top_builddir_sub in
3769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3771 esac ;;
3772esac
3773ac_abs_top_builddir=$ac_pwd
3774ac_abs_builddir=$ac_pwd$ac_dir_suffix
3775# for backward compatibility:
3776ac_top_builddir=$ac_top_build_prefix
3777
3778case $srcdir in
3779 .) # We are building in place.
3780 ac_srcdir=.
3781 ac_top_srcdir=$ac_top_builddir_sub
3782 ac_abs_top_srcdir=$ac_pwd ;;
3783 [\\/]* | ?:[\\/]* ) # Absolute name.
3784 ac_srcdir=$srcdir$ac_dir_suffix;
3785 ac_top_srcdir=$srcdir
3786 ac_abs_top_srcdir=$srcdir ;;
3787 *) # Relative name.
3788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3789 ac_top_srcdir=$ac_top_build_prefix$srcdir
3790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3791esac
3792ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3793
3794
3795 case $ac_mode in
3796 :F)
3797 #
3798 # CONFIG_FILE
3799 #
3800
3801 case $INSTALL in
3802 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3803 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
3804 esac
3805 ac_MKDIR_P=$MKDIR_P
3806 case $MKDIR_P in
3807 [\\/$]* | ?:[\\/]* ) ;;
3808 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
3809 esac
3810_ACEOF
3811
3812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3813# If the template does not know about datarootdir, expand it.
3814# FIXME: This hack should be removed a few years after 2.60.
3815ac_datarootdir_hack=; ac_datarootdir_seen=
3816ac_sed_dataroot='
3817/datarootdir/ {
3818 p
3819 q
3820}
3821/@datadir@/p
3822/@docdir@/p
3823/@infodir@/p
3824/@localedir@/p
3825/@mandir@/p'
3826case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3827*datarootdir*) ac_datarootdir_seen=yes;;
3828*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3830$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3831_ACEOF
3832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3833 ac_datarootdir_hack='
3834 s&@datadir@&$datadir&g
3835 s&@docdir@&$docdir&g
3836 s&@infodir@&$infodir&g
3837 s&@localedir@&$localedir&g
3838 s&@mandir@&$mandir&g
3839 s&\\\${datarootdir}&$datarootdir&g' ;;
3840esac
3841_ACEOF
3842
3843# Neutralize VPATH when `$srcdir' = `.'.
3844# Shell code in configure.ac might set extrasub.
3845# FIXME: do we really want to maintain this feature?
3846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3847ac_sed_extra="$ac_vpsub
3848$extrasub
3849_ACEOF
3850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3851:t
3852/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3853s|@configure_input@|$ac_sed_conf_input|;t t
3854s&@top_builddir@&$ac_top_builddir_sub&;t t
3855s&@top_build_prefix@&$ac_top_build_prefix&;t t
3856s&@srcdir@&$ac_srcdir&;t t
3857s&@abs_srcdir@&$ac_abs_srcdir&;t t
3858s&@top_srcdir@&$ac_top_srcdir&;t t
3859s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3860s&@builddir@&$ac_builddir&;t t
3861s&@abs_builddir@&$ac_abs_builddir&;t t
3862s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3863s&@INSTALL@&$ac_INSTALL&;t t
3864s&@MKDIR_P@&$ac_MKDIR_P&;t t
3865$ac_datarootdir_hack
3866"
3867eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3868 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3869
3870test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3871 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3872 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3873 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3875which seems to be undefined. Please make sure it is defined" >&5
3876$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3877which seems to be undefined. Please make sure it is defined" >&2;}
3878
3879 rm -f "$ac_tmp/stdin"
3880 case $ac_file in
3881 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3882 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3883 esac \
3884 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3885 ;;
3886
3887
3888
3889 esac
3890
3891done # for ac_tag
3892
3893
3894as_fn_exit 0
3895_ACEOF
3896ac_clean_files=$ac_clean_files_save
3897
3898test $ac_write_fail = 0 ||
3899 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3900
3901
3902# configure is writing to config.log, and then calls config.status.
3903# config.status does its own redirection, appending to config.log.
3904# Unfortunately, on DOS this fails, as config.log is still kept open
3905# by configure, so config.status won't be able to write to it; its
3906# output is simply discarded. So we exec the FD to /dev/null,
3907# effectively closing config.log, so it can be properly (re)opened and
3908# appended to by config.status. When coming back to configure, we
3909# need to make the FD available again.
3910if test "$no_create" != yes; then
3911 ac_cs_success=:
3912 ac_config_status_args=
3913 test "$silent" = yes &&
3914 ac_config_status_args="$ac_config_status_args --quiet"
3915 exec 5>/dev/null
3916 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3917 exec 5>>config.log
3918 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3919 # would make configure fail if this is the last instruction.
3920 $ac_cs_success || as_fn_exit 1
3921fi
3922if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3924$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3925fi
3926