blob: e319baea102a1efb008e0f61b719cc80b6f4a2e0 [file] [log] [blame]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for open_pdks 1.0.
4#
5# Report bugs to <github.com/RTimothyEdwards/open_pdks>.
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
269$0: github.com/RTimothyEdwards/open_pdks about your system,
270$0: including any error possibly output before this
271$0: message. Then install a modern shell, or manually run
272$0: the script under such a shell if you do 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='open_pdks'
581PACKAGE_TARNAME='open_pdks'
582PACKAGE_VERSION='1.0'
583PACKAGE_STRING='open_pdks 1.0'
584PACKAGE_BUGREPORT='github.com/RTimothyEdwards/open_pdks'
585PACKAGE_URL=''
586
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589MAGIC
590pkgpyexecdir
591pyexecdir
592pkgpythondir
593pythondir
594PYTHON_PLATFORM
595PYTHON_EXEC_PREFIX
596PYTHON_PREFIX
597PYTHON_VERSION
598PYTHON
599LOCAL_PATH
600test_tech_SOURCE_PATH
601sky130_SOURCE_PATH
602target_alias
603host_alias
604build_alias
605LIBS
606ECHO_T
607ECHO_N
608ECHO_C
609DEFS
610mandir
611localedir
612libdir
613psdir
614pdfdir
615dvidir
616htmldir
617infodir
618docdir
619oldincludedir
620includedir
621localstatedir
622sharedstatedir
623sysconfdir
624datadir
625datarootdir
626libexecdir
627sbindir
628bindir
629program_transform_name
630prefix
631exec_prefix
632PACKAGE_URL
633PACKAGE_BUGREPORT
634PACKAGE_STRING
635PACKAGE_VERSION
636PACKAGE_TARNAME
637PACKAGE_NAME
638PATH_SEPARATOR
639SHELL'
640ac_subst_files=''
641ac_user_opts='
642enable_option_checking
643with_sky130_source
644with_test_tech_source
645with_local_path
646'
647 ac_precious_vars='build_alias
648host_alias
649target_alias
650PYTHON'
651
652
653# Initialize some variables set by options.
654ac_init_help=
655ac_init_version=false
656ac_unrecognized_opts=
657ac_unrecognized_sep=
658# The variables have the same names as the options, with
659# dashes changed to underlines.
660cache_file=/dev/null
661exec_prefix=NONE
662no_create=
663no_recursion=
664prefix=NONE
665program_prefix=NONE
666program_suffix=NONE
667program_transform_name=s,x,x,
668silent=
669site=
670srcdir=
671verbose=
672x_includes=NONE
673x_libraries=NONE
674
675# Installation directory options.
676# These are left unexpanded so users can "make install exec_prefix=/foo"
677# and all the variables that are supposed to be based on exec_prefix
678# by default will actually change.
679# Use braces instead of parens because sh, perl, etc. also accept them.
680# (The list follows the same order as the GNU Coding Standards.)
681bindir='${exec_prefix}/bin'
682sbindir='${exec_prefix}/sbin'
683libexecdir='${exec_prefix}/libexec'
684datarootdir='${prefix}/share'
685datadir='${datarootdir}'
686sysconfdir='${prefix}/etc'
687sharedstatedir='${prefix}/com'
688localstatedir='${prefix}/var'
689includedir='${prefix}/include'
690oldincludedir='/usr/include'
691docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
692infodir='${datarootdir}/info'
693htmldir='${docdir}'
694dvidir='${docdir}'
695pdfdir='${docdir}'
696psdir='${docdir}'
697libdir='${exec_prefix}/lib'
698localedir='${datarootdir}/locale'
699mandir='${datarootdir}/man'
700
701ac_prev=
702ac_dashdash=
703for ac_option
704do
705 # If the previous option needs an argument, assign it.
706 if test -n "$ac_prev"; then
707 eval $ac_prev=\$ac_option
708 ac_prev=
709 continue
710 fi
711
712 case $ac_option in
713 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
714 *=) ac_optarg= ;;
715 *) ac_optarg=yes ;;
716 esac
717
718 # Accept the important Cygnus configure options, so we can diagnose typos.
719
720 case $ac_dashdash$ac_option in
721 --)
722 ac_dashdash=yes ;;
723
724 -bindir | --bindir | --bindi | --bind | --bin | --bi)
725 ac_prev=bindir ;;
726 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
727 bindir=$ac_optarg ;;
728
729 -build | --build | --buil | --bui | --bu)
730 ac_prev=build_alias ;;
731 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
732 build_alias=$ac_optarg ;;
733
734 -cache-file | --cache-file | --cache-fil | --cache-fi \
735 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
736 ac_prev=cache_file ;;
737 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
738 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
739 cache_file=$ac_optarg ;;
740
741 --config-cache | -C)
742 cache_file=config.cache ;;
743
744 -datadir | --datadir | --datadi | --datad)
745 ac_prev=datadir ;;
746 -datadir=* | --datadir=* | --datadi=* | --datad=*)
747 datadir=$ac_optarg ;;
748
749 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
750 | --dataroo | --dataro | --datar)
751 ac_prev=datarootdir ;;
752 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
753 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
754 datarootdir=$ac_optarg ;;
755
756 -disable-* | --disable-*)
757 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
760 as_fn_error $? "invalid feature name: $ac_useropt"
761 ac_useropt_orig=$ac_useropt
762 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
763 case $ac_user_opts in
764 *"
765"enable_$ac_useropt"
766"*) ;;
767 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
768 ac_unrecognized_sep=', ';;
769 esac
770 eval enable_$ac_useropt=no ;;
771
772 -docdir | --docdir | --docdi | --doc | --do)
773 ac_prev=docdir ;;
774 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
775 docdir=$ac_optarg ;;
776
777 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
778 ac_prev=dvidir ;;
779 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
780 dvidir=$ac_optarg ;;
781
782 -enable-* | --enable-*)
783 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
784 # Reject names that are not valid shell variable names.
785 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
786 as_fn_error $? "invalid feature name: $ac_useropt"
787 ac_useropt_orig=$ac_useropt
788 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
789 case $ac_user_opts in
790 *"
791"enable_$ac_useropt"
792"*) ;;
793 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
794 ac_unrecognized_sep=', ';;
795 esac
796 eval enable_$ac_useropt=\$ac_optarg ;;
797
798 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
799 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
800 | --exec | --exe | --ex)
801 ac_prev=exec_prefix ;;
802 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
803 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
804 | --exec=* | --exe=* | --ex=*)
805 exec_prefix=$ac_optarg ;;
806
807 -gas | --gas | --ga | --g)
808 # Obsolete; use --with-gas.
809 with_gas=yes ;;
810
811 -help | --help | --hel | --he | -h)
812 ac_init_help=long ;;
813 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
814 ac_init_help=recursive ;;
815 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
816 ac_init_help=short ;;
817
818 -host | --host | --hos | --ho)
819 ac_prev=host_alias ;;
820 -host=* | --host=* | --hos=* | --ho=*)
821 host_alias=$ac_optarg ;;
822
823 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
824 ac_prev=htmldir ;;
825 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
826 | --ht=*)
827 htmldir=$ac_optarg ;;
828
829 -includedir | --includedir | --includedi | --included | --include \
830 | --includ | --inclu | --incl | --inc)
831 ac_prev=includedir ;;
832 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
833 | --includ=* | --inclu=* | --incl=* | --inc=*)
834 includedir=$ac_optarg ;;
835
836 -infodir | --infodir | --infodi | --infod | --info | --inf)
837 ac_prev=infodir ;;
838 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
839 infodir=$ac_optarg ;;
840
841 -libdir | --libdir | --libdi | --libd)
842 ac_prev=libdir ;;
843 -libdir=* | --libdir=* | --libdi=* | --libd=*)
844 libdir=$ac_optarg ;;
845
846 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
847 | --libexe | --libex | --libe)
848 ac_prev=libexecdir ;;
849 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
850 | --libexe=* | --libex=* | --libe=*)
851 libexecdir=$ac_optarg ;;
852
853 -localedir | --localedir | --localedi | --localed | --locale)
854 ac_prev=localedir ;;
855 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
856 localedir=$ac_optarg ;;
857
858 -localstatedir | --localstatedir | --localstatedi | --localstated \
859 | --localstate | --localstat | --localsta | --localst | --locals)
860 ac_prev=localstatedir ;;
861 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
862 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
863 localstatedir=$ac_optarg ;;
864
865 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
866 ac_prev=mandir ;;
867 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
868 mandir=$ac_optarg ;;
869
870 -nfp | --nfp | --nf)
871 # Obsolete; use --without-fp.
872 with_fp=no ;;
873
874 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
875 | --no-cr | --no-c | -n)
876 no_create=yes ;;
877
878 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
879 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
880 no_recursion=yes ;;
881
882 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
883 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
884 | --oldin | --oldi | --old | --ol | --o)
885 ac_prev=oldincludedir ;;
886 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
887 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
888 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
889 oldincludedir=$ac_optarg ;;
890
891 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
892 ac_prev=prefix ;;
893 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
894 prefix=$ac_optarg ;;
895
896 -program-prefix | --program-prefix | --program-prefi | --program-pref \
897 | --program-pre | --program-pr | --program-p)
898 ac_prev=program_prefix ;;
899 -program-prefix=* | --program-prefix=* | --program-prefi=* \
900 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
901 program_prefix=$ac_optarg ;;
902
903 -program-suffix | --program-suffix | --program-suffi | --program-suff \
904 | --program-suf | --program-su | --program-s)
905 ac_prev=program_suffix ;;
906 -program-suffix=* | --program-suffix=* | --program-suffi=* \
907 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
908 program_suffix=$ac_optarg ;;
909
910 -program-transform-name | --program-transform-name \
911 | --program-transform-nam | --program-transform-na \
912 | --program-transform-n | --program-transform- \
913 | --program-transform | --program-transfor \
914 | --program-transfo | --program-transf \
915 | --program-trans | --program-tran \
916 | --progr-tra | --program-tr | --program-t)
917 ac_prev=program_transform_name ;;
918 -program-transform-name=* | --program-transform-name=* \
919 | --program-transform-nam=* | --program-transform-na=* \
920 | --program-transform-n=* | --program-transform-=* \
921 | --program-transform=* | --program-transfor=* \
922 | --program-transfo=* | --program-transf=* \
923 | --program-trans=* | --program-tran=* \
924 | --progr-tra=* | --program-tr=* | --program-t=*)
925 program_transform_name=$ac_optarg ;;
926
927 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
928 ac_prev=pdfdir ;;
929 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
930 pdfdir=$ac_optarg ;;
931
932 -psdir | --psdir | --psdi | --psd | --ps)
933 ac_prev=psdir ;;
934 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
935 psdir=$ac_optarg ;;
936
937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
938 | -silent | --silent | --silen | --sile | --sil)
939 silent=yes ;;
940
941 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
942 ac_prev=sbindir ;;
943 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
944 | --sbi=* | --sb=*)
945 sbindir=$ac_optarg ;;
946
947 -sharedstatedir | --sharedstatedir | --sharedstatedi \
948 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
949 | --sharedst | --shareds | --shared | --share | --shar \
950 | --sha | --sh)
951 ac_prev=sharedstatedir ;;
952 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
953 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
954 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
955 | --sha=* | --sh=*)
956 sharedstatedir=$ac_optarg ;;
957
958 -site | --site | --sit)
959 ac_prev=site ;;
960 -site=* | --site=* | --sit=*)
961 site=$ac_optarg ;;
962
963 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
964 ac_prev=srcdir ;;
965 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
966 srcdir=$ac_optarg ;;
967
968 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
969 | --syscon | --sysco | --sysc | --sys | --sy)
970 ac_prev=sysconfdir ;;
971 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
972 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
973 sysconfdir=$ac_optarg ;;
974
975 -target | --target | --targe | --targ | --tar | --ta | --t)
976 ac_prev=target_alias ;;
977 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
978 target_alias=$ac_optarg ;;
979
980 -v | -verbose | --verbose | --verbos | --verbo | --verb)
981 verbose=yes ;;
982
983 -version | --version | --versio | --versi | --vers | -V)
984 ac_init_version=: ;;
985
986 -with-* | --with-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid package name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995"with_$ac_useropt"
996"*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval with_$ac_useropt=\$ac_optarg ;;
1001
1002 -without-* | --without-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid package name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011"with_$ac_useropt"
1012"*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval with_$ac_useropt=no ;;
1017
1018 --x)
1019 # Obsolete; use --with-x.
1020 with_x=yes ;;
1021
1022 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1023 | --x-incl | --x-inc | --x-in | --x-i)
1024 ac_prev=x_includes ;;
1025 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1026 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1027 x_includes=$ac_optarg ;;
1028
1029 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1030 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1031 ac_prev=x_libraries ;;
1032 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1033 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1034 x_libraries=$ac_optarg ;;
1035
1036 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1037Try \`$0 --help' for more information"
1038 ;;
1039
1040 *=*)
1041 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1042 # Reject names that are not valid shell variable names.
1043 case $ac_envvar in #(
1044 '' | [0-9]* | *[!_$as_cr_alnum]* )
1045 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1046 esac
1047 eval $ac_envvar=\$ac_optarg
1048 export $ac_envvar ;;
1049
1050 *)
1051 # FIXME: should be removed in autoconf 3.0.
1052 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1053 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1055 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1056 ;;
1057
1058 esac
1059done
1060
1061if test -n "$ac_prev"; then
1062 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1063 as_fn_error $? "missing argument to $ac_option"
1064fi
1065
1066if test -n "$ac_unrecognized_opts"; then
1067 case $enable_option_checking in
1068 no) ;;
1069 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1070 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1071 esac
1072fi
1073
1074# Check all directory arguments for consistency.
1075for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1076 datadir sysconfdir sharedstatedir localstatedir includedir \
1077 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1078 libdir localedir mandir
1079do
1080 eval ac_val=\$$ac_var
1081 # Remove trailing slashes.
1082 case $ac_val in
1083 */ )
1084 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1085 eval $ac_var=\$ac_val;;
1086 esac
1087 # Be sure to have absolute directory names.
1088 case $ac_val in
1089 [\\/$]* | ?:[\\/]* ) continue;;
1090 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1091 esac
1092 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1093done
1094
1095# There might be people who depend on the old broken behavior: `$host'
1096# used to hold the argument of --host etc.
1097# FIXME: To remove some day.
1098build=$build_alias
1099host=$host_alias
1100target=$target_alias
1101
1102# FIXME: To remove some day.
1103if test "x$host_alias" != x; then
1104 if test "x$build_alias" = x; then
1105 cross_compiling=maybe
1106 elif test "x$build_alias" != "x$host_alias"; then
1107 cross_compiling=yes
1108 fi
1109fi
1110
1111ac_tool_prefix=
1112test -n "$host_alias" && ac_tool_prefix=$host_alias-
1113
1114test "$silent" = yes && exec 6>/dev/null
1115
1116
1117ac_pwd=`pwd` && test -n "$ac_pwd" &&
1118ac_ls_di=`ls -di .` &&
1119ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1120 as_fn_error $? "working directory cannot be determined"
1121test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1122 as_fn_error $? "pwd does not report name of working directory"
1123
1124
1125# Find the source files, if location was not specified.
1126if test -z "$srcdir"; then
1127 ac_srcdir_defaulted=yes
1128 # Try the directory containing this script, then the parent directory.
1129 ac_confdir=`$as_dirname -- "$as_myself" ||
1130$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1131 X"$as_myself" : 'X\(//\)[^/]' \| \
1132 X"$as_myself" : 'X\(//\)$' \| \
1133 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1134$as_echo X"$as_myself" |
1135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1136 s//\1/
1137 q
1138 }
1139 /^X\(\/\/\)[^/].*/{
1140 s//\1/
1141 q
1142 }
1143 /^X\(\/\/\)$/{
1144 s//\1/
1145 q
1146 }
1147 /^X\(\/\).*/{
1148 s//\1/
1149 q
1150 }
1151 s/.*/./; q'`
1152 srcdir=$ac_confdir
1153 if test ! -r "$srcdir/$ac_unique_file"; then
1154 srcdir=..
1155 fi
1156else
1157 ac_srcdir_defaulted=no
1158fi
1159if test ! -r "$srcdir/$ac_unique_file"; then
1160 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1161 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1162fi
1163ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1164ac_abs_confdir=`(
1165 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1166 pwd)`
1167# When building in place, set srcdir=.
1168if test "$ac_abs_confdir" = "$ac_pwd"; then
1169 srcdir=.
1170fi
1171# Remove unnecessary trailing slashes from srcdir.
1172# Double slashes in file names in object file debugging info
1173# mess up M-x gdb in Emacs.
1174case $srcdir in
1175*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1176esac
1177for ac_var in $ac_precious_vars; do
1178 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1179 eval ac_env_${ac_var}_value=\$${ac_var}
1180 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1181 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1182done
1183
1184#
1185# Report the --help message.
1186#
1187if test "$ac_init_help" = "long"; then
1188 # Omit some internal or obsolete options to make the list less imposing.
1189 # This message is too long to be a string in the A/UX 3.1 sh.
1190 cat <<_ACEOF
1191\`configure' configures open_pdks 1.0 to adapt to many kinds of systems.
1192
1193Usage: $0 [OPTION]... [VAR=VALUE]...
1194
1195To assign environment variables (e.g., CC, CFLAGS...), specify them as
1196VAR=VALUE. See below for descriptions of some of the useful variables.
1197
1198Defaults for the options are specified in brackets.
1199
1200Configuration:
1201 -h, --help display this help and exit
1202 --help=short display options specific to this package
1203 --help=recursive display the short help of all the included packages
1204 -V, --version display version information and exit
1205 -q, --quiet, --silent do not print \`checking ...' messages
1206 --cache-file=FILE cache test results in FILE [disabled]
1207 -C, --config-cache alias for \`--cache-file=config.cache'
1208 -n, --no-create do not create output files
1209 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1210
1211Installation directories:
1212 --prefix=PREFIX install architecture-independent files in PREFIX
1213 [$ac_default_prefix]
1214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1215 [PREFIX]
1216
1217By default, \`make install' will install all the files in
1218\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1219an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1220for instance \`--prefix=\$HOME'.
1221
1222For better control, use the options below.
1223
1224Fine tuning of the installation directories:
1225 --bindir=DIR user executables [EPREFIX/bin]
1226 --sbindir=DIR system admin executables [EPREFIX/sbin]
1227 --libexecdir=DIR program executables [EPREFIX/libexec]
1228 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1229 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1230 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1231 --libdir=DIR object code libraries [EPREFIX/lib]
1232 --includedir=DIR C header files [PREFIX/include]
1233 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1234 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1235 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1236 --infodir=DIR info documentation [DATAROOTDIR/info]
1237 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1238 --mandir=DIR man documentation [DATAROOTDIR/man]
1239 --docdir=DIR documentation root [DATAROOTDIR/doc/open_pdks]
1240 --htmldir=DIR html documentation [DOCDIR]
1241 --dvidir=DIR dvi documentation [DOCDIR]
1242 --pdfdir=DIR pdf documentation [DOCDIR]
1243 --psdir=DIR ps documentation [DOCDIR]
1244_ACEOF
1245
1246 cat <<\_ACEOF
1247_ACEOF
1248fi
1249
1250if test -n "$ac_init_help"; then
1251 case $ac_init_help in
1252 short | recursive ) echo "Configuration of open_pdks 1.0:";;
1253 esac
1254 cat <<\_ACEOF
1255
1256Optional Packages:
1257 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1258 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1259 --with-sky130-source=/path/to/sky130/source
1260 "location of the source files for sky130"
1261 --with-local-path=/path/to/install/pdks
1262 "location where the PDKs will be installed"
1263
1264Some influential environment variables:
1265 PYTHON the Python interpreter
1266
1267Use these variables to override the choices made by `configure' or to help
1268it to find libraries and programs with nonstandard names/locations.
1269
1270Report bugs to <github.com/RTimothyEdwards/open_pdks>.
1271_ACEOF
1272ac_status=$?
1273fi
1274
1275if test "$ac_init_help" = "recursive"; then
1276 # If there are subdirs, report their specific --help.
1277 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1278 test -d "$ac_dir" ||
1279 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1280 continue
1281 ac_builddir=.
1282
1283case "$ac_dir" in
1284.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1285*)
1286 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1287 # A ".." for each directory in $ac_dir_suffix.
1288 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1289 case $ac_top_builddir_sub in
1290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1292 esac ;;
1293esac
1294ac_abs_top_builddir=$ac_pwd
1295ac_abs_builddir=$ac_pwd$ac_dir_suffix
1296# for backward compatibility:
1297ac_top_builddir=$ac_top_build_prefix
1298
1299case $srcdir in
1300 .) # We are building in place.
1301 ac_srcdir=.
1302 ac_top_srcdir=$ac_top_builddir_sub
1303 ac_abs_top_srcdir=$ac_pwd ;;
1304 [\\/]* | ?:[\\/]* ) # Absolute name.
1305 ac_srcdir=$srcdir$ac_dir_suffix;
1306 ac_top_srcdir=$srcdir
1307 ac_abs_top_srcdir=$srcdir ;;
1308 *) # Relative name.
1309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1310 ac_top_srcdir=$ac_top_build_prefix$srcdir
1311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1312esac
1313ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1314
1315 cd "$ac_dir" || { ac_status=$?; continue; }
1316 # Check for guested configure.
1317 if test -f "$ac_srcdir/configure.gnu"; then
1318 echo &&
1319 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1320 elif test -f "$ac_srcdir/configure"; then
1321 echo &&
1322 $SHELL "$ac_srcdir/configure" --help=recursive
1323 else
1324 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1325 fi || ac_status=$?
1326 cd "$ac_pwd" || { ac_status=$?; break; }
1327 done
1328fi
1329
1330test -n "$ac_init_help" && exit $ac_status
1331if $ac_init_version; then
1332 cat <<\_ACEOF
1333open_pdks configure 1.0
1334generated by GNU Autoconf 2.69
1335
1336Copyright (C) 2012 Free Software Foundation, Inc.
1337This configure script is free software; the Free Software Foundation
1338gives unlimited permission to copy, distribute and modify it.
1339_ACEOF
1340 exit
1341fi
1342
1343## ------------------------ ##
1344## Autoconf initialization. ##
1345## ------------------------ ##
1346cat >config.log <<_ACEOF
1347This file contains any messages produced by compilers while
1348running configure, to aid debugging if configure makes a mistake.
1349
1350It was created by open_pdks $as_me 1.0, which was
1351generated by GNU Autoconf 2.69. Invocation command line was
1352
1353 $ $0 $@
1354
1355_ACEOF
1356exec 5>>config.log
1357{
1358cat <<_ASUNAME
1359## --------- ##
1360## Platform. ##
1361## --------- ##
1362
1363hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1364uname -m = `(uname -m) 2>/dev/null || echo unknown`
1365uname -r = `(uname -r) 2>/dev/null || echo unknown`
1366uname -s = `(uname -s) 2>/dev/null || echo unknown`
1367uname -v = `(uname -v) 2>/dev/null || echo unknown`
1368
1369/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1370/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1371
1372/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1373/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1374/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1375/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1376/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1377/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1378/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1379
1380_ASUNAME
1381
1382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383for as_dir in $PATH
1384do
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 $as_echo "PATH: $as_dir"
1388 done
1389IFS=$as_save_IFS
1390
1391} >&5
1392
1393cat >&5 <<_ACEOF
1394
1395
1396## ----------- ##
1397## Core tests. ##
1398## ----------- ##
1399
1400_ACEOF
1401
1402
1403# Keep a trace of the command line.
1404# Strip out --no-create and --no-recursion so they do not pile up.
1405# Strip out --silent because we don't want to record it for future runs.
1406# Also quote any args containing shell meta-characters.
1407# Make two passes to allow for proper duplicate-argument suppression.
1408ac_configure_args=
1409ac_configure_args0=
1410ac_configure_args1=
1411ac_must_keep_next=false
1412for ac_pass in 1 2
1413do
1414 for ac_arg
1415 do
1416 case $ac_arg in
1417 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1419 | -silent | --silent | --silen | --sile | --sil)
1420 continue ;;
1421 *\'*)
1422 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1423 esac
1424 case $ac_pass in
1425 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1426 2)
1427 as_fn_append ac_configure_args1 " '$ac_arg'"
1428 if test $ac_must_keep_next = true; then
1429 ac_must_keep_next=false # Got value, back to normal.
1430 else
1431 case $ac_arg in
1432 *=* | --config-cache | -C | -disable-* | --disable-* \
1433 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1434 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1435 | -with-* | --with-* | -without-* | --without-* | --x)
1436 case "$ac_configure_args0 " in
1437 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1438 esac
1439 ;;
1440 -* ) ac_must_keep_next=true ;;
1441 esac
1442 fi
1443 as_fn_append ac_configure_args " '$ac_arg'"
1444 ;;
1445 esac
1446 done
1447done
1448{ ac_configure_args0=; unset ac_configure_args0;}
1449{ ac_configure_args1=; unset ac_configure_args1;}
1450
1451# When interrupted or exit'd, cleanup temporary files, and complete
1452# config.log. We remove comments because anyway the quotes in there
1453# would cause problems or look ugly.
1454# WARNING: Use '\'' to represent an apostrophe within the trap.
1455# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1456trap 'exit_status=$?
1457 # Save into config.log some information that might help in debugging.
1458 {
1459 echo
1460
1461 $as_echo "## ---------------- ##
1462## Cache variables. ##
1463## ---------------- ##"
1464 echo
1465 # The following way of writing the cache mishandles newlines in values,
1466(
1467 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1468 eval ac_val=\$$ac_var
1469 case $ac_val in #(
1470 *${as_nl}*)
1471 case $ac_var in #(
1472 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1473$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1474 esac
1475 case $ac_var in #(
1476 _ | IFS | as_nl) ;; #(
1477 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1478 *) { eval $ac_var=; unset $ac_var;} ;;
1479 esac ;;
1480 esac
1481 done
1482 (set) 2>&1 |
1483 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1484 *${as_nl}ac_space=\ *)
1485 sed -n \
1486 "s/'\''/'\''\\\\'\'''\''/g;
1487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1488 ;; #(
1489 *)
1490 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1491 ;;
1492 esac |
1493 sort
1494)
1495 echo
1496
1497 $as_echo "## ----------------- ##
1498## Output variables. ##
1499## ----------------- ##"
1500 echo
1501 for ac_var in $ac_subst_vars
1502 do
1503 eval ac_val=\$$ac_var
1504 case $ac_val in
1505 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1506 esac
1507 $as_echo "$ac_var='\''$ac_val'\''"
1508 done | sort
1509 echo
1510
1511 if test -n "$ac_subst_files"; then
1512 $as_echo "## ------------------- ##
1513## File substitutions. ##
1514## ------------------- ##"
1515 echo
1516 for ac_var in $ac_subst_files
1517 do
1518 eval ac_val=\$$ac_var
1519 case $ac_val in
1520 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1521 esac
1522 $as_echo "$ac_var='\''$ac_val'\''"
1523 done | sort
1524 echo
1525 fi
1526
1527 if test -s confdefs.h; then
1528 $as_echo "## ----------- ##
1529## confdefs.h. ##
1530## ----------- ##"
1531 echo
1532 cat confdefs.h
1533 echo
1534 fi
1535 test "$ac_signal" != 0 &&
1536 $as_echo "$as_me: caught signal $ac_signal"
1537 $as_echo "$as_me: exit $exit_status"
1538 } >&5
1539 rm -f core *.core core.conftest.* &&
1540 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1541 exit $exit_status
1542' 0
1543for ac_signal in 1 2 13 15; do
1544 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1545done
1546ac_signal=0
1547
1548# confdefs.h avoids OS command line length limits that DEFS can exceed.
1549rm -f -r conftest* confdefs.h
1550
1551$as_echo "/* confdefs.h */" > confdefs.h
1552
1553# Predefined preprocessor variables.
1554
1555cat >>confdefs.h <<_ACEOF
1556#define PACKAGE_NAME "$PACKAGE_NAME"
1557_ACEOF
1558
1559cat >>confdefs.h <<_ACEOF
1560#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1561_ACEOF
1562
1563cat >>confdefs.h <<_ACEOF
1564#define PACKAGE_VERSION "$PACKAGE_VERSION"
1565_ACEOF
1566
1567cat >>confdefs.h <<_ACEOF
1568#define PACKAGE_STRING "$PACKAGE_STRING"
1569_ACEOF
1570
1571cat >>confdefs.h <<_ACEOF
1572#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1573_ACEOF
1574
1575cat >>confdefs.h <<_ACEOF
1576#define PACKAGE_URL "$PACKAGE_URL"
1577_ACEOF
1578
1579
1580# Let the site file select an alternate cache file if it wants to.
1581# Prefer an explicitly selected file to automatically selected ones.
1582ac_site_file1=NONE
1583ac_site_file2=NONE
1584if test -n "$CONFIG_SITE"; then
1585 # We do not want a PATH search for config.site.
1586 case $CONFIG_SITE in #((
1587 -*) ac_site_file1=./$CONFIG_SITE;;
1588 */*) ac_site_file1=$CONFIG_SITE;;
1589 *) ac_site_file1=./$CONFIG_SITE;;
1590 esac
1591elif test "x$prefix" != xNONE; then
1592 ac_site_file1=$prefix/share/config.site
1593 ac_site_file2=$prefix/etc/config.site
1594else
1595 ac_site_file1=$ac_default_prefix/share/config.site
1596 ac_site_file2=$ac_default_prefix/etc/config.site
1597fi
1598for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1599do
1600 test "x$ac_site_file" = xNONE && continue
1601 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1603$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1604 sed 's/^/| /' "$ac_site_file" >&5
1605 . "$ac_site_file" \
1606 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1608as_fn_error $? "failed to load site script $ac_site_file
1609See \`config.log' for more details" "$LINENO" 5; }
1610 fi
1611done
1612
1613if test -r "$cache_file"; then
1614 # Some versions of bash will fail to source /dev/null (special files
1615 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1616 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1618$as_echo "$as_me: loading cache $cache_file" >&6;}
1619 case $cache_file in
1620 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1621 *) . "./$cache_file";;
1622 esac
1623 fi
1624else
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1626$as_echo "$as_me: creating cache $cache_file" >&6;}
1627 >$cache_file
1628fi
1629
1630# Check that the precious variables saved in the cache have kept the same
1631# value.
1632ac_cache_corrupted=false
1633for ac_var in $ac_precious_vars; do
1634 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1635 eval ac_new_set=\$ac_env_${ac_var}_set
1636 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1637 eval ac_new_val=\$ac_env_${ac_var}_value
1638 case $ac_old_set,$ac_new_set in
1639 set,)
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1641$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1642 ac_cache_corrupted=: ;;
1643 ,set)
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1645$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1646 ac_cache_corrupted=: ;;
1647 ,);;
1648 *)
1649 if test "x$ac_old_val" != "x$ac_new_val"; then
1650 # differences in whitespace do not lead to failure.
1651 ac_old_val_w=`echo x $ac_old_val`
1652 ac_new_val_w=`echo x $ac_new_val`
1653 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1655$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1656 ac_cache_corrupted=:
1657 else
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1659$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1660 eval $ac_var=\$ac_old_val
1661 fi
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1663$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1665$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1666 fi;;
1667 esac
1668 # Pass precious variables to config.status.
1669 if test "$ac_new_set" = set; then
1670 case $ac_new_val in
1671 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 *) ac_arg=$ac_var=$ac_new_val ;;
1673 esac
1674 case " $ac_configure_args " in
1675 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1676 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1677 esac
1678 fi
1679done
1680if $ac_cache_corrupted; then
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1684$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1685 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1686fi
1687## -------------------- ##
1688## Main body of script. ##
1689## -------------------- ##
1690
1691ac_ext=c
1692ac_cpp='$CPP $CPPFLAGS'
1693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1695ac_compiler_gnu=$ac_cv_c_compiler_gnu
1696
1697
1698
1699# detect PDKs based on directories that include Makefile.in files
1700
1701
1702
1703
1704{ $as_echo "$as_me:${as_lineno-$LINENO}: Found technology directories: sky130 test_tech" >&5
1705$as_echo "$as_me: Found technology directories: sky130 test_tech" >&6;}
1706
1707
1708 # --with-pdk-source=PDK_SOURCE_PATH
1709
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether 'sky130' is specified" >&5
1711$as_echo "$as_me: Checking whether 'sky130' is specified" >&6;}
1712
1713# Check whether --with-sky130-source was given.
1714if test "${with_sky130_source+set}" = set; then :
1715 withval=$with_sky130_source;
1716 sky130_SOURCE_PATH=$with_sky130_source
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'sky130' at $sky130_SOURCE_PATH" >&5
1718$as_echo "$as_me: Checking specified path for 'sky130' at $sky130_SOURCE_PATH" >&6;}
1719
1720 # force an absolute path
1721 # pdk[]_SOURCE_PATH=$(readlink -f $[]pdk[]_SOURCE_PATH)
1722
1723 # basic check that the PDK exists there (the path must exist in any case)
1724 as_ac_File=`$as_echo "ac_cv_file_$sky130_SOURCE_PATH" | $as_tr_sh`
1725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sky130_SOURCE_PATH" >&5
1726$as_echo_n "checking for $sky130_SOURCE_PATH... " >&6; }
1727if eval \${$as_ac_File+:} false; then :
1728 $as_echo_n "(cached) " >&6
1729else
1730 test "$cross_compiling" = yes &&
1731 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
1732if test -r "$sky130_SOURCE_PATH"; then
1733 eval "$as_ac_File=yes"
1734else
1735 eval "$as_ac_File=no"
1736fi
1737fi
1738eval ac_res=\$$as_ac_File
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
1742
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: 'sky130' source path found at $sky130_SOURCE_PATH" >&5
1744$as_echo "$as_me: 'sky130' source path found at $sky130_SOURCE_PATH" >&6;}
1745
1746else
1747
1748 as_fn_error $? "Specified path for 'sky130' at $sky130_SOURCE_PATH not found" "$LINENO" 5
1749
1750
1751fi
1752
1753
1754
1755fi
1756
1757
1758
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether 'test_tech' is specified" >&5
1760$as_echo "$as_me: Checking whether 'test_tech' is specified" >&6;}
1761
1762# Check whether --with-test_tech-source was given.
1763if test "${with_test_tech_source+set}" = set; then :
1764 withval=$with_test_tech_source;
1765 test_tech_SOURCE_PATH=$with_test_tech_source
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'test_tech' at $test_tech_SOURCE_PATH" >&5
1767$as_echo "$as_me: Checking specified path for 'test_tech' at $test_tech_SOURCE_PATH" >&6;}
1768
1769 # force an absolute path
1770 # pdk[]_SOURCE_PATH=$(readlink -f $[]pdk[]_SOURCE_PATH)
1771
1772 # basic check that the PDK exists there (the path must exist in any case)
1773 as_ac_File=`$as_echo "ac_cv_file_$test_tech_SOURCE_PATH" | $as_tr_sh`
1774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $test_tech_SOURCE_PATH" >&5
1775$as_echo_n "checking for $test_tech_SOURCE_PATH... " >&6; }
1776if eval \${$as_ac_File+:} false; then :
1777 $as_echo_n "(cached) " >&6
1778else
1779 test "$cross_compiling" = yes &&
1780 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
1781if test -r "$test_tech_SOURCE_PATH"; then
1782 eval "$as_ac_File=yes"
1783else
1784 eval "$as_ac_File=no"
1785fi
1786fi
1787eval ac_res=\$$as_ac_File
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
1791
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: 'test_tech' source path found at $test_tech_SOURCE_PATH" >&5
1793$as_echo "$as_me: 'test_tech' source path found at $test_tech_SOURCE_PATH" >&6;}
1794
1795else
1796
1797 as_fn_error $? "Specified path for 'test_tech' at $test_tech_SOURCE_PATH not found" "$LINENO" 5
1798
1799
1800fi
1801
1802
1803
1804fi
1805
1806
1807
1808
1809
1810# --with-local-path=LOCAL_PATH
1811
1812# Check whether --with-local-path was given.
1813if test "${with_local_path+set}" = set; then :
1814 withval=$with_local_path;
1815 LOCAL_PATH=$with_local_path
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: Local installation path set to $LOCAL_PATH" >&5
1817$as_echo "$as_me: Local installation path set to $LOCAL_PATH" >&6;}
1818
1819else
1820
1821 as_fn_error $? "--with-local-path=/path/to/install/pdks is a required argument" "$LINENO" 5
1822
1823
1824fi
1825
1826
1827
1828
1829
1830# Checking if (some) prerequisites are satisfied
1831
1832
1833
1834
1835
1836
1837 if test -n "$PYTHON"; then
1838 # If the user set $PYTHON, use it and don't search something else.
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
1840$as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
1841 prog="import sys
1842# split strings by '.' and convert to numeric. Append some zeros
1843# because we need at least 4 digits for the hex conversion.
1844# map returns an iterator in Python 3.0 and a list in 2.x
1845minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1846minverhex = 0
1847# xrange is not present in Python 3.0 and range returns an iterator
1848for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1849sys.exit(sys.hexversion < minverhex)"
1850 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
1851 ($PYTHON -c "$prog") >&5 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; then :
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1856$as_echo "yes" >&6; }
1857else
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1859$as_echo "no" >&6; }
1860 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
1861fi
1862 am_display_PYTHON=$PYTHON
1863 else
1864 # Otherwise, try each interpreter until we find one that satisfies
1865 # VERSION.
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
1867$as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
1868if ${am_cv_pathless_PYTHON+:} false; then :
1869 $as_echo_n "(cached) " >&6
1870else
1871
1872 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
1873 test "$am_cv_pathless_PYTHON" = none && break
1874 prog="import sys
1875# split strings by '.' and convert to numeric. Append some zeros
1876# because we need at least 4 digits for the hex conversion.
1877# map returns an iterator in Python 3.0 and a list in 2.x
1878minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1879minverhex = 0
1880# xrange is not present in Python 3.0 and range returns an iterator
1881for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1882sys.exit(sys.hexversion < minverhex)"
1883 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
1884 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
1885 ac_status=$?
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; then :
1888 break
1889fi
1890 done
1891fi
1892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
1893$as_echo "$am_cv_pathless_PYTHON" >&6; }
1894 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1895 if test "$am_cv_pathless_PYTHON" = none; then
1896 PYTHON=:
1897 else
1898 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
1899set dummy $am_cv_pathless_PYTHON; ac_word=$2
1900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1901$as_echo_n "checking for $ac_word... " >&6; }
1902if ${ac_cv_path_PYTHON+:} false; then :
1903 $as_echo_n "(cached) " >&6
1904else
1905 case $PYTHON in
1906 [\\/]* | ?:[\\/]*)
1907 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1908 ;;
1909 *)
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1920 fi
1921done
1922 done
1923IFS=$as_save_IFS
1924
1925 ;;
1926esac
1927fi
1928PYTHON=$ac_cv_path_PYTHON
1929if test -n "$PYTHON"; then
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1931$as_echo "$PYTHON" >&6; }
1932else
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1934$as_echo "no" >&6; }
1935fi
1936
1937
1938 fi
1939 am_display_PYTHON=$am_cv_pathless_PYTHON
1940 fi
1941
1942
1943 if test "$PYTHON" = :; then
1944 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
1945 else
1946
1947
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
1949$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
1950if ${am_cv_python_version+:} false; then :
1951 $as_echo_n "(cached) " >&6
1952else
1953 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
1954fi
1955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
1956$as_echo "$am_cv_python_version" >&6; }
1957 PYTHON_VERSION=$am_cv_python_version
1958
1959
1960
1961 PYTHON_PREFIX='${prefix}'
1962
1963 PYTHON_EXEC_PREFIX='${exec_prefix}'
1964
1965
1966
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
1968$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
1969if ${am_cv_python_platform+:} false; then :
1970 $as_echo_n "(cached) " >&6
1971else
1972 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
1973fi
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
1975$as_echo "$am_cv_python_platform" >&6; }
1976 PYTHON_PLATFORM=$am_cv_python_platform
1977
1978
1979 # Just factor out some code duplication.
1980 am_python_setup_sysconfig="\
1981import sys
1982# Prefer sysconfig over distutils.sysconfig, for better compatibility
1983# with python 3.x. See automake bug#10227.
1984try:
1985 import sysconfig
1986except ImportError:
1987 can_use_sysconfig = 0
1988else:
1989 can_use_sysconfig = 1
1990# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
1991# <https://github.com/pypa/virtualenv/issues/118>
1992try:
1993 from platform import python_implementation
1994 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
1995 can_use_sysconfig = 0
1996except ImportError:
1997 pass"
1998
1999
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
2001$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
2002if ${am_cv_python_pythondir+:} false; then :
2003 $as_echo_n "(cached) " >&6
2004else
2005 if test "x$prefix" = xNONE
2006 then
2007 am_py_prefix=$ac_default_prefix
2008 else
2009 am_py_prefix=$prefix
2010 fi
2011 am_cv_python_pythondir=`$PYTHON -c "
2012$am_python_setup_sysconfig
2013if can_use_sysconfig:
2014 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
2015else:
2016 from distutils import sysconfig
2017 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
2018sys.stdout.write(sitedir)"`
2019 case $am_cv_python_pythondir in
2020 $am_py_prefix*)
2021 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
2022 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
2023 ;;
2024 *)
2025 case $am_py_prefix in
2026 /usr|/System*) ;;
2027 *)
2028 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
2029 ;;
2030 esac
2031 ;;
2032 esac
2033
2034fi
2035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
2036$as_echo "$am_cv_python_pythondir" >&6; }
2037 pythondir=$am_cv_python_pythondir
2038
2039
2040
2041 pkgpythondir=\${pythondir}/$PACKAGE
2042
2043
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
2045$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
2046if ${am_cv_python_pyexecdir+:} false; then :
2047 $as_echo_n "(cached) " >&6
2048else
2049 if test "x$exec_prefix" = xNONE
2050 then
2051 am_py_exec_prefix=$am_py_prefix
2052 else
2053 am_py_exec_prefix=$exec_prefix
2054 fi
2055 am_cv_python_pyexecdir=`$PYTHON -c "
2056$am_python_setup_sysconfig
2057if can_use_sysconfig:
2058 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
2059else:
2060 from distutils import sysconfig
2061 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
2062sys.stdout.write(sitedir)"`
2063 case $am_cv_python_pyexecdir in
2064 $am_py_exec_prefix*)
2065 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
2066 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
2067 ;;
2068 *)
2069 case $am_py_exec_prefix in
2070 /usr|/System*) ;;
2071 *)
2072 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
2073 ;;
2074 esac
2075 ;;
2076 esac
2077
2078fi
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
2080$as_echo "$am_cv_python_pyexecdir" >&6; }
2081 pyexecdir=$am_cv_python_pyexecdir
2082
2083
2084
2085 pkgpyexecdir=\${pyexecdir}/$PACKAGE
2086
2087
2088
2089 fi
2090
2091
2092
2093 if test -z $PYTHON;
2094 then
2095 if test -z "";
2096 then
2097 PYTHON="python3"
2098 else
2099 PYTHON=""
2100 fi
2101 fi
2102 PYTHON_NAME=`basename $PYTHON`
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: distutils" >&5
2104$as_echo_n "checking $PYTHON_NAME module: distutils... " >&6; }
2105 $PYTHON -c "import distutils" 2>/dev/null
2106 if test $? -eq 0;
2107 then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2109$as_echo "yes" >&6; }
2110 eval HAVE_PYMOD_DISTUTILS=yes
2111 else
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2113$as_echo "no" >&6; }
2114 eval HAVE_PYMOD_DISTUTILS=no
2115 #
2116 if test -n ""
2117 then
2118 as_fn_error $? "failed to find required module distutils" "$LINENO" 5
2119 exit 1
2120 fi
2121 fi
2122
2123
2124# Extract the first word of "magic", so it can be a program name with args.
2125set dummy magic; ac_word=$2
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2127$as_echo_n "checking for $ac_word... " >&6; }
2128if ${ac_cv_path_MAGIC+:} false; then :
2129 $as_echo_n "(cached) " >&6
2130else
2131 case $MAGIC in
2132 [\\/]* | ?:[\\/]*)
2133 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
2134 ;;
2135 *)
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 ac_cv_path_MAGIC="$as_dir/$ac_word$ac_exec_ext"
2144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2146 fi
2147done
2148 done
2149IFS=$as_save_IFS
2150
2151 ;;
2152esac
2153fi
2154MAGIC=$ac_cv_path_MAGIC
2155if test -n "$MAGIC"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC" >&5
2157$as_echo "$MAGIC" >&6; }
2158else
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2160$as_echo "no" >&6; }
2161fi
2162
2163
2164if test -z "$MAGIC"; then
2165 as_fn_error $? "You need 'magic' to generate the needed various cell views" "$LINENO" 5
2166fi
2167
2168
2169
2170MAKEFILES=$(find .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g')
2171ac_config_files="$ac_config_files $MAKEFILES"
2172
2173
2174cat >confcache <<\_ACEOF
2175# This file is a shell script that caches the results of configure
2176# tests run on this system so they can be shared between configure
2177# scripts and configure runs, see configure's option --config-cache.
2178# It is not useful on other systems. If it contains results you don't
2179# want to keep, you may remove or edit it.
2180#
2181# config.status only pays attention to the cache file if you give it
2182# the --recheck option to rerun configure.
2183#
2184# `ac_cv_env_foo' variables (set or unset) will be overridden when
2185# loading this file, other *unset* `ac_cv_foo' will be assigned the
2186# following values.
2187
2188_ACEOF
2189
2190# The following way of writing the cache mishandles newlines in values,
2191# but we know of no workaround that is simple, portable, and efficient.
2192# So, we kill variables containing newlines.
2193# Ultrix sh set writes to stderr and can't be redirected directly,
2194# and sets the high bit in the cache file unless we assign to the vars.
2195(
2196 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2197 eval ac_val=\$$ac_var
2198 case $ac_val in #(
2199 *${as_nl}*)
2200 case $ac_var in #(
2201 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2202$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2203 esac
2204 case $ac_var in #(
2205 _ | IFS | as_nl) ;; #(
2206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2207 *) { eval $ac_var=; unset $ac_var;} ;;
2208 esac ;;
2209 esac
2210 done
2211
2212 (set) 2>&1 |
2213 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2214 *${as_nl}ac_space=\ *)
2215 # `set' does not quote correctly, so add quotes: double-quote
2216 # substitution turns \\\\ into \\, and sed turns \\ into \.
2217 sed -n \
2218 "s/'/'\\\\''/g;
2219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2220 ;; #(
2221 *)
2222 # `set' quotes correctly as required by POSIX, so do not add quotes.
2223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2224 ;;
2225 esac |
2226 sort
2227) |
2228 sed '
2229 /^ac_cv_env_/b end
2230 t clear
2231 :clear
2232 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2233 t end
2234 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2235 :end' >>confcache
2236if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2237 if test -w "$cache_file"; then
2238 if test "x$cache_file" != "x/dev/null"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2240$as_echo "$as_me: updating cache $cache_file" >&6;}
2241 if test ! -f "$cache_file" || test -h "$cache_file"; then
2242 cat confcache >"$cache_file"
2243 else
2244 case $cache_file in #(
2245 */* | ?:*)
2246 mv -f confcache "$cache_file"$$ &&
2247 mv -f "$cache_file"$$ "$cache_file" ;; #(
2248 *)
2249 mv -f confcache "$cache_file" ;;
2250 esac
2251 fi
2252 fi
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2255$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2256 fi
2257fi
2258rm -f confcache
2259
2260test "x$prefix" = xNONE && prefix=$ac_default_prefix
2261# Let make expand exec_prefix.
2262test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2263
2264# Transform confdefs.h into DEFS.
2265# Protect against shell expansion while executing Makefile rules.
2266# Protect against Makefile macro expansion.
2267#
2268# If the first sed substitution is executed (which looks for macros that
2269# take arguments), then branch to the quote section. Otherwise,
2270# look for a macro that doesn't take arguments.
2271ac_script='
2272:mline
2273/\\$/{
2274 N
2275 s,\\\n,,
2276 b mline
2277}
2278t clear
2279:clear
2280s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2281t quote
2282s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2283t quote
2284b any
2285:quote
2286s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2287s/\[/\\&/g
2288s/\]/\\&/g
2289s/\$/$$/g
2290H
2291:any
2292${
2293 g
2294 s/^\n//
2295 s/\n/ /g
2296 p
2297}
2298'
2299DEFS=`sed -n "$ac_script" confdefs.h`
2300
2301
2302ac_libobjs=
2303ac_ltlibobjs=
2304U=
2305for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2306 # 1. Remove the extension, and $U if already installed.
2307 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2308 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2310 # will be set to the directory where LIBOBJS objects are built.
2311 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2312 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2313done
2314LIBOBJS=$ac_libobjs
2315
2316LTLIBOBJS=$ac_ltlibobjs
2317
2318
2319
2320: "${CONFIG_STATUS=./config.status}"
2321ac_write_fail=0
2322ac_clean_files_save=$ac_clean_files
2323ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2324{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2325$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2326as_write_fail=0
2327cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2328#! $SHELL
2329# Generated by $as_me.
2330# Run this file to recreate the current configuration.
2331# Compiler output produced by configure, useful for debugging
2332# configure, is in config.log if it exists.
2333
2334debug=false
2335ac_cs_recheck=false
2336ac_cs_silent=false
2337
2338SHELL=\${CONFIG_SHELL-$SHELL}
2339export SHELL
2340_ASEOF
2341cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2342## -------------------- ##
2343## M4sh Initialization. ##
2344## -------------------- ##
2345
2346# Be more Bourne compatible
2347DUALCASE=1; export DUALCASE # for MKS sh
2348if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2349 emulate sh
2350 NULLCMD=:
2351 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2352 # is contrary to our usage. Disable this feature.
2353 alias -g '${1+"$@"}'='"$@"'
2354 setopt NO_GLOB_SUBST
2355else
2356 case `(set -o) 2>/dev/null` in #(
2357 *posix*) :
2358 set -o posix ;; #(
2359 *) :
2360 ;;
2361esac
2362fi
2363
2364
2365as_nl='
2366'
2367export as_nl
2368# Printing a long string crashes Solaris 7 /usr/bin/printf.
2369as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2370as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2371as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2372# Prefer a ksh shell builtin over an external printf program on Solaris,
2373# but without wasting forks for bash or zsh.
2374if test -z "$BASH_VERSION$ZSH_VERSION" \
2375 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2376 as_echo='print -r --'
2377 as_echo_n='print -rn --'
2378elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2379 as_echo='printf %s\n'
2380 as_echo_n='printf %s'
2381else
2382 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2383 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2384 as_echo_n='/usr/ucb/echo -n'
2385 else
2386 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2387 as_echo_n_body='eval
2388 arg=$1;
2389 case $arg in #(
2390 *"$as_nl"*)
2391 expr "X$arg" : "X\\(.*\\)$as_nl";
2392 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2393 esac;
2394 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2395 '
2396 export as_echo_n_body
2397 as_echo_n='sh -c $as_echo_n_body as_echo'
2398 fi
2399 export as_echo_body
2400 as_echo='sh -c $as_echo_body as_echo'
2401fi
2402
2403# The user is always right.
2404if test "${PATH_SEPARATOR+set}" != set; then
2405 PATH_SEPARATOR=:
2406 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2407 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2408 PATH_SEPARATOR=';'
2409 }
2410fi
2411
2412
2413# IFS
2414# We need space, tab and new line, in precisely that order. Quoting is
2415# there to prevent editors from complaining about space-tab.
2416# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2417# splitting by setting IFS to empty value.)
2418IFS=" "" $as_nl"
2419
2420# Find who we are. Look in the path if we contain no directory separator.
2421as_myself=
2422case $0 in #((
2423 *[\\/]* ) as_myself=$0 ;;
2424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2430 done
2431IFS=$as_save_IFS
2432
2433 ;;
2434esac
2435# We did not find ourselves, most probably we were run as `sh COMMAND'
2436# in which case we are not to be found in the path.
2437if test "x$as_myself" = x; then
2438 as_myself=$0
2439fi
2440if test ! -f "$as_myself"; then
2441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2442 exit 1
2443fi
2444
2445# Unset variables that we do not need and which cause bugs (e.g. in
2446# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2447# suppresses any "Segmentation fault" message there. '((' could
2448# trigger a bug in pdksh 5.2.14.
2449for as_var in BASH_ENV ENV MAIL MAILPATH
2450do eval test x\${$as_var+set} = xset \
2451 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2452done
2453PS1='$ '
2454PS2='> '
2455PS4='+ '
2456
2457# NLS nuisances.
2458LC_ALL=C
2459export LC_ALL
2460LANGUAGE=C
2461export LANGUAGE
2462
2463# CDPATH.
2464(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2465
2466
2467# as_fn_error STATUS ERROR [LINENO LOG_FD]
2468# ----------------------------------------
2469# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2470# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2471# script with STATUS, using 1 if that was 0.
2472as_fn_error ()
2473{
2474 as_status=$1; test $as_status -eq 0 && as_status=1
2475 if test "$4"; then
2476 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2478 fi
2479 $as_echo "$as_me: error: $2" >&2
2480 as_fn_exit $as_status
2481} # as_fn_error
2482
2483
2484# as_fn_set_status STATUS
2485# -----------------------
2486# Set $? to STATUS, without forking.
2487as_fn_set_status ()
2488{
2489 return $1
2490} # as_fn_set_status
2491
2492# as_fn_exit STATUS
2493# -----------------
2494# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2495as_fn_exit ()
2496{
2497 set +e
2498 as_fn_set_status $1
2499 exit $1
2500} # as_fn_exit
2501
2502# as_fn_unset VAR
2503# ---------------
2504# Portably unset VAR.
2505as_fn_unset ()
2506{
2507 { eval $1=; unset $1;}
2508}
2509as_unset=as_fn_unset
2510# as_fn_append VAR VALUE
2511# ----------------------
2512# Append the text in VALUE to the end of the definition contained in VAR. Take
2513# advantage of any shell optimizations that allow amortized linear growth over
2514# repeated appends, instead of the typical quadratic growth present in naive
2515# implementations.
2516if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2517 eval 'as_fn_append ()
2518 {
2519 eval $1+=\$2
2520 }'
2521else
2522 as_fn_append ()
2523 {
2524 eval $1=\$$1\$2
2525 }
2526fi # as_fn_append
2527
2528# as_fn_arith ARG...
2529# ------------------
2530# Perform arithmetic evaluation on the ARGs, and store the result in the
2531# global $as_val. Take advantage of shells that can avoid forks. The arguments
2532# must be portable across $(()) and expr.
2533if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2534 eval 'as_fn_arith ()
2535 {
2536 as_val=$(( $* ))
2537 }'
2538else
2539 as_fn_arith ()
2540 {
2541 as_val=`expr "$@" || test $? -eq 1`
2542 }
2543fi # as_fn_arith
2544
2545
2546if expr a : '\(a\)' >/dev/null 2>&1 &&
2547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2548 as_expr=expr
2549else
2550 as_expr=false
2551fi
2552
2553if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2554 as_basename=basename
2555else
2556 as_basename=false
2557fi
2558
2559if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2560 as_dirname=dirname
2561else
2562 as_dirname=false
2563fi
2564
2565as_me=`$as_basename -- "$0" ||
2566$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2567 X"$0" : 'X\(//\)$' \| \
2568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2569$as_echo X/"$0" |
2570 sed '/^.*\/\([^/][^/]*\)\/*$/{
2571 s//\1/
2572 q
2573 }
2574 /^X\/\(\/\/\)$/{
2575 s//\1/
2576 q
2577 }
2578 /^X\/\(\/\).*/{
2579 s//\1/
2580 q
2581 }
2582 s/.*/./; q'`
2583
2584# Avoid depending upon Character Ranges.
2585as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2586as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2587as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2588as_cr_digits='0123456789'
2589as_cr_alnum=$as_cr_Letters$as_cr_digits
2590
2591ECHO_C= ECHO_N= ECHO_T=
2592case `echo -n x` in #(((((
2593-n*)
2594 case `echo 'xy\c'` in
2595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2596 xy) ECHO_C='\c';;
2597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2598 ECHO_T=' ';;
2599 esac;;
2600*)
2601 ECHO_N='-n';;
2602esac
2603
2604rm -f conf$$ conf$$.exe conf$$.file
2605if test -d conf$$.dir; then
2606 rm -f conf$$.dir/conf$$.file
2607else
2608 rm -f conf$$.dir
2609 mkdir conf$$.dir 2>/dev/null
2610fi
2611if (echo >conf$$.file) 2>/dev/null; then
2612 if ln -s conf$$.file conf$$ 2>/dev/null; then
2613 as_ln_s='ln -s'
2614 # ... but there are two gotchas:
2615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2617 # In both cases, we have to default to `cp -pR'.
2618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2619 as_ln_s='cp -pR'
2620 elif ln conf$$.file conf$$ 2>/dev/null; then
2621 as_ln_s=ln
2622 else
2623 as_ln_s='cp -pR'
2624 fi
2625else
2626 as_ln_s='cp -pR'
2627fi
2628rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2629rmdir conf$$.dir 2>/dev/null
2630
2631
2632# as_fn_mkdir_p
2633# -------------
2634# Create "$as_dir" as a directory, including parents if necessary.
2635as_fn_mkdir_p ()
2636{
2637
2638 case $as_dir in #(
2639 -*) as_dir=./$as_dir;;
2640 esac
2641 test -d "$as_dir" || eval $as_mkdir_p || {
2642 as_dirs=
2643 while :; do
2644 case $as_dir in #(
2645 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2646 *) as_qdir=$as_dir;;
2647 esac
2648 as_dirs="'$as_qdir' $as_dirs"
2649 as_dir=`$as_dirname -- "$as_dir" ||
2650$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2651 X"$as_dir" : 'X\(//\)[^/]' \| \
2652 X"$as_dir" : 'X\(//\)$' \| \
2653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2654$as_echo X"$as_dir" |
2655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2656 s//\1/
2657 q
2658 }
2659 /^X\(\/\/\)[^/].*/{
2660 s//\1/
2661 q
2662 }
2663 /^X\(\/\/\)$/{
2664 s//\1/
2665 q
2666 }
2667 /^X\(\/\).*/{
2668 s//\1/
2669 q
2670 }
2671 s/.*/./; q'`
2672 test -d "$as_dir" && break
2673 done
2674 test -z "$as_dirs" || eval "mkdir $as_dirs"
2675 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2676
2677
2678} # as_fn_mkdir_p
2679if mkdir -p . 2>/dev/null; then
2680 as_mkdir_p='mkdir -p "$as_dir"'
2681else
2682 test -d ./-p && rmdir ./-p
2683 as_mkdir_p=false
2684fi
2685
2686
2687# as_fn_executable_p FILE
2688# -----------------------
2689# Test if FILE is an executable regular file.
2690as_fn_executable_p ()
2691{
2692 test -f "$1" && test -x "$1"
2693} # as_fn_executable_p
2694as_test_x='test -x'
2695as_executable_p=as_fn_executable_p
2696
2697# Sed expression to map a string onto a valid CPP name.
2698as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2699
2700# Sed expression to map a string onto a valid variable name.
2701as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2702
2703
2704exec 6>&1
2705## ----------------------------------- ##
2706## Main body of $CONFIG_STATUS script. ##
2707## ----------------------------------- ##
2708_ASEOF
2709test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2710
2711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2712# Save the log message, to keep $0 and so on meaningful, and to
2713# report actual input values of CONFIG_FILES etc. instead of their
2714# values after options handling.
2715ac_log="
2716This file was extended by open_pdks $as_me 1.0, which was
2717generated by GNU Autoconf 2.69. Invocation command line was
2718
2719 CONFIG_FILES = $CONFIG_FILES
2720 CONFIG_HEADERS = $CONFIG_HEADERS
2721 CONFIG_LINKS = $CONFIG_LINKS
2722 CONFIG_COMMANDS = $CONFIG_COMMANDS
2723 $ $0 $@
2724
2725on `(hostname || uname -n) 2>/dev/null | sed 1q`
2726"
2727
2728_ACEOF
2729
2730case $ac_config_files in *"
2731"*) set x $ac_config_files; shift; ac_config_files=$*;;
2732esac
2733
2734
2735
2736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2737# Files that config.status was made for.
2738config_files="$ac_config_files"
2739
2740_ACEOF
2741
2742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2743ac_cs_usage="\
2744\`$as_me' instantiates files and other configuration actions
2745from templates according to the current configuration. Unless the files
2746and actions are specified as TAGs, all are instantiated by default.
2747
2748Usage: $0 [OPTION]... [TAG]...
2749
2750 -h, --help print this help, then exit
2751 -V, --version print version number and configuration settings, then exit
2752 --config print configuration, then exit
2753 -q, --quiet, --silent
2754 do not print progress messages
2755 -d, --debug don't remove temporary files
2756 --recheck update $as_me by reconfiguring in the same conditions
2757 --file=FILE[:TEMPLATE]
2758 instantiate the configuration file FILE
2759
2760Configuration files:
2761$config_files
2762
2763Report bugs to <github.com/RTimothyEdwards/open_pdks>."
2764
2765_ACEOF
2766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2767ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2768ac_cs_version="\\
2769open_pdks config.status 1.0
2770configured by $0, generated by GNU Autoconf 2.69,
2771 with options \\"\$ac_cs_config\\"
2772
2773Copyright (C) 2012 Free Software Foundation, Inc.
2774This config.status script is free software; the Free Software Foundation
2775gives unlimited permission to copy, distribute and modify it."
2776
2777ac_pwd='$ac_pwd'
2778srcdir='$srcdir'
2779test -n "\$AWK" || AWK=awk
2780_ACEOF
2781
2782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2783# The default lists apply if the user does not specify any file.
2784ac_need_defaults=:
2785while test $# != 0
2786do
2787 case $1 in
2788 --*=?*)
2789 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2790 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2791 ac_shift=:
2792 ;;
2793 --*=)
2794 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2795 ac_optarg=
2796 ac_shift=:
2797 ;;
2798 *)
2799 ac_option=$1
2800 ac_optarg=$2
2801 ac_shift=shift
2802 ;;
2803 esac
2804
2805 case $ac_option in
2806 # Handling of the options.
2807 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2808 ac_cs_recheck=: ;;
2809 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2810 $as_echo "$ac_cs_version"; exit ;;
2811 --config | --confi | --conf | --con | --co | --c )
2812 $as_echo "$ac_cs_config"; exit ;;
2813 --debug | --debu | --deb | --de | --d | -d )
2814 debug=: ;;
2815 --file | --fil | --fi | --f )
2816 $ac_shift
2817 case $ac_optarg in
2818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2819 '') as_fn_error $? "missing file argument" ;;
2820 esac
2821 as_fn_append CONFIG_FILES " '$ac_optarg'"
2822 ac_need_defaults=false;;
2823 --he | --h | --help | --hel | -h )
2824 $as_echo "$ac_cs_usage"; exit ;;
2825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2826 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2827 ac_cs_silent=: ;;
2828
2829 # This is an error.
2830 -*) as_fn_error $? "unrecognized option: \`$1'
2831Try \`$0 --help' for more information." ;;
2832
2833 *) as_fn_append ac_config_targets " $1"
2834 ac_need_defaults=false ;;
2835
2836 esac
2837 shift
2838done
2839
2840ac_configure_extra_args=
2841
2842if $ac_cs_silent; then
2843 exec 6>/dev/null
2844 ac_configure_extra_args="$ac_configure_extra_args --silent"
2845fi
2846
2847_ACEOF
2848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2849if \$ac_cs_recheck; then
2850 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2851 shift
2852 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
2853 CONFIG_SHELL='$SHELL'
2854 export CONFIG_SHELL
2855 exec "\$@"
2856fi
2857
2858_ACEOF
2859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2860exec 5>>config.log
2861{
2862 echo
2863 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2864## Running $as_me. ##
2865_ASBOX
2866 $as_echo "$ac_log"
2867} >&5
2868
2869_ACEOF
2870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2871_ACEOF
2872
2873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2874
2875# Handling of arguments.
2876for ac_config_target in $ac_config_targets
2877do
2878 case $ac_config_target in
2879 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
2880
2881 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
2882 esac
2883done
2884
2885
2886# If the user did not use the arguments to specify the items to instantiate,
2887# then the envvar interface is used. Set only those that are not.
2888# We use the long form for the default assignment because of an extremely
2889# bizarre bug on SunOS 4.1.3.
2890if $ac_need_defaults; then
2891 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2892fi
2893
2894# Have a temporary directory for convenience. Make it in the build tree
2895# simply because there is no reason against having it here, and in addition,
2896# creating and moving files from /tmp can sometimes cause problems.
2897# Hook for its removal unless debugging.
2898# Note that there is a small window in which the directory will not be cleaned:
2899# after its creation but before its name has been assigned to `$tmp'.
2900$debug ||
2901{
2902 tmp= ac_tmp=
2903 trap 'exit_status=$?
2904 : "${ac_tmp:=$tmp}"
2905 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
2906' 0
2907 trap 'as_fn_exit 1' 1 2 13 15
2908}
2909# Create a (secure) tmp directory for tmp files.
2910
2911{
2912 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2913 test -d "$tmp"
2914} ||
2915{
2916 tmp=./conf$$-$RANDOM
2917 (umask 077 && mkdir "$tmp")
2918} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
2919ac_tmp=$tmp
2920
2921# Set up the scripts for CONFIG_FILES section.
2922# No need to generate them if there are no CONFIG_FILES.
2923# This happens for instance with `./config.status config.h'.
2924if test -n "$CONFIG_FILES"; then
2925
2926
2927ac_cr=`echo X | tr X '\015'`
2928# On cygwin, bash can eat \r inside `` if the user requested igncr.
2929# But we know of no other shell where ac_cr would be empty at this
2930# point, so we can use a bashism as a fallback.
2931if test "x$ac_cr" = x; then
2932 eval ac_cr=\$\'\\r\'
2933fi
2934ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
2935if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
2936 ac_cs_awk_cr='\\r'
2937else
2938 ac_cs_awk_cr=$ac_cr
2939fi
2940
2941echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
2942_ACEOF
2943
2944
2945{
2946 echo "cat >conf$$subs.awk <<_ACEOF" &&
2947 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
2948 echo "_ACEOF"
2949} >conf$$subs.sh ||
2950 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2951ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
2952ac_delim='%!_!# '
2953for ac_last_try in false false false false false :; do
2954 . ./conf$$subs.sh ||
2955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2956
2957 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
2958 if test $ac_delim_n = $ac_delim_num; then
2959 break
2960 elif $ac_last_try; then
2961 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2962 else
2963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2964 fi
2965done
2966rm -f conf$$subs.sh
2967
2968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2969cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2970_ACEOF
2971sed -n '
2972h
2973s/^/S["/; s/!.*/"]=/
2974p
2975g
2976s/^[^!]*!//
2977:repl
2978t repl
2979s/'"$ac_delim"'$//
2980t delim
2981:nl
2982h
2983s/\(.\{148\}\)..*/\1/
2984t more1
2985s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
2986p
2987n
2988b repl
2989:more1
2990s/["\\]/\\&/g; s/^/"/; s/$/"\\/
2991p
2992g
2993s/.\{148\}//
2994t nl
2995:delim
2996h
2997s/\(.\{148\}\)..*/\1/
2998t more2
2999s/["\\]/\\&/g; s/^/"/; s/$/"/
3000p
3001b
3002:more2
3003s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3004p
3005g
3006s/.\{148\}//
3007t delim
3008' <conf$$subs.awk | sed '
3009/^[^""]/{
3010 N
3011 s/\n//
3012}
3013' >>$CONFIG_STATUS || ac_write_fail=1
3014rm -f conf$$subs.awk
3015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3016_ACAWK
3017cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3018 for (key in S) S_is_set[key] = 1
3019 FS = ""
3020
3021}
3022{
3023 line = $ 0
3024 nfields = split(line, field, "@")
3025 substed = 0
3026 len = length(field[1])
3027 for (i = 2; i < nfields; i++) {
3028 key = field[i]
3029 keylen = length(key)
3030 if (S_is_set[key]) {
3031 value = S[key]
3032 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3033 len += length(value) + length(field[++i])
3034 substed = 1
3035 } else
3036 len += 1 + keylen
3037 }
3038
3039 print line
3040}
3041
3042_ACAWK
3043_ACEOF
3044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3045if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3046 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3047else
3048 cat
3049fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3050 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3051_ACEOF
3052
3053# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3054# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3055# trailing colons and then remove the whole line if VPATH becomes empty
3056# (actually we leave an empty line to preserve line numbers).
3057if test "x$srcdir" = x.; then
3058 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3059h
3060s///
3061s/^/:/
3062s/[ ]*$/:/
3063s/:\$(srcdir):/:/g
3064s/:\${srcdir}:/:/g
3065s/:@srcdir@:/:/g
3066s/^:*//
3067s/:*$//
3068x
3069s/\(=[ ]*\).*/\1/
3070G
3071s/\n//
3072s/^[^=]*=[ ]*$//
3073}'
3074fi
3075
3076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3077fi # test -n "$CONFIG_FILES"
3078
3079
3080eval set X " :F $CONFIG_FILES "
3081shift
3082for ac_tag
3083do
3084 case $ac_tag in
3085 :[FHLC]) ac_mode=$ac_tag; continue;;
3086 esac
3087 case $ac_mode$ac_tag in
3088 :[FHL]*:*);;
3089 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3090 :[FH]-) ac_tag=-:-;;
3091 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3092 esac
3093 ac_save_IFS=$IFS
3094 IFS=:
3095 set x $ac_tag
3096 IFS=$ac_save_IFS
3097 shift
3098 ac_file=$1
3099 shift
3100
3101 case $ac_mode in
3102 :L) ac_source=$1;;
3103 :[FH])
3104 ac_file_inputs=
3105 for ac_f
3106 do
3107 case $ac_f in
3108 -) ac_f="$ac_tmp/stdin";;
3109 *) # Look for the file first in the build tree, then in the source tree
3110 # (if the path is not absolute). The absolute path cannot be DOS-style,
3111 # because $ac_f cannot contain `:'.
3112 test -f "$ac_f" ||
3113 case $ac_f in
3114 [\\/$]*) false;;
3115 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3116 esac ||
3117 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3118 esac
3119 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3120 as_fn_append ac_file_inputs " '$ac_f'"
3121 done
3122
3123 # Let's still pretend it is `configure' which instantiates (i.e., don't
3124 # use $as_me), people would be surprised to read:
3125 # /* config.h. Generated by config.status. */
3126 configure_input='Generated from '`
3127 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3128 `' by configure.'
3129 if test x"$ac_file" != x-; then
3130 configure_input="$ac_file. $configure_input"
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3132$as_echo "$as_me: creating $ac_file" >&6;}
3133 fi
3134 # Neutralize special characters interpreted by sed in replacement strings.
3135 case $configure_input in #(
3136 *\&* | *\|* | *\\* )
3137 ac_sed_conf_input=`$as_echo "$configure_input" |
3138 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3139 *) ac_sed_conf_input=$configure_input;;
3140 esac
3141
3142 case $ac_tag in
3143 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3145 esac
3146 ;;
3147 esac
3148
3149 ac_dir=`$as_dirname -- "$ac_file" ||
3150$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3151 X"$ac_file" : 'X\(//\)[^/]' \| \
3152 X"$ac_file" : 'X\(//\)$' \| \
3153 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3154$as_echo X"$ac_file" |
3155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3156 s//\1/
3157 q
3158 }
3159 /^X\(\/\/\)[^/].*/{
3160 s//\1/
3161 q
3162 }
3163 /^X\(\/\/\)$/{
3164 s//\1/
3165 q
3166 }
3167 /^X\(\/\).*/{
3168 s//\1/
3169 q
3170 }
3171 s/.*/./; q'`
3172 as_dir="$ac_dir"; as_fn_mkdir_p
3173 ac_builddir=.
3174
3175case "$ac_dir" in
3176.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3177*)
3178 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3179 # A ".." for each directory in $ac_dir_suffix.
3180 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3181 case $ac_top_builddir_sub in
3182 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3183 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3184 esac ;;
3185esac
3186ac_abs_top_builddir=$ac_pwd
3187ac_abs_builddir=$ac_pwd$ac_dir_suffix
3188# for backward compatibility:
3189ac_top_builddir=$ac_top_build_prefix
3190
3191case $srcdir in
3192 .) # We are building in place.
3193 ac_srcdir=.
3194 ac_top_srcdir=$ac_top_builddir_sub
3195 ac_abs_top_srcdir=$ac_pwd ;;
3196 [\\/]* | ?:[\\/]* ) # Absolute name.
3197 ac_srcdir=$srcdir$ac_dir_suffix;
3198 ac_top_srcdir=$srcdir
3199 ac_abs_top_srcdir=$srcdir ;;
3200 *) # Relative name.
3201 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3202 ac_top_srcdir=$ac_top_build_prefix$srcdir
3203 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3204esac
3205ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3206
3207
3208 case $ac_mode in
3209 :F)
3210 #
3211 # CONFIG_FILE
3212 #
3213
3214_ACEOF
3215
3216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3217# If the template does not know about datarootdir, expand it.
3218# FIXME: This hack should be removed a few years after 2.60.
3219ac_datarootdir_hack=; ac_datarootdir_seen=
3220ac_sed_dataroot='
3221/datarootdir/ {
3222 p
3223 q
3224}
3225/@datadir@/p
3226/@docdir@/p
3227/@infodir@/p
3228/@localedir@/p
3229/@mandir@/p'
3230case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3231*datarootdir*) ac_datarootdir_seen=yes;;
3232*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3234$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3235_ACEOF
3236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3237 ac_datarootdir_hack='
3238 s&@datadir@&$datadir&g
3239 s&@docdir@&$docdir&g
3240 s&@infodir@&$infodir&g
3241 s&@localedir@&$localedir&g
3242 s&@mandir@&$mandir&g
3243 s&\\\${datarootdir}&$datarootdir&g' ;;
3244esac
3245_ACEOF
3246
3247# Neutralize VPATH when `$srcdir' = `.'.
3248# Shell code in configure.ac might set extrasub.
3249# FIXME: do we really want to maintain this feature?
3250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3251ac_sed_extra="$ac_vpsub
3252$extrasub
3253_ACEOF
3254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3255:t
3256/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3257s|@configure_input@|$ac_sed_conf_input|;t t
3258s&@top_builddir@&$ac_top_builddir_sub&;t t
3259s&@top_build_prefix@&$ac_top_build_prefix&;t t
3260s&@srcdir@&$ac_srcdir&;t t
3261s&@abs_srcdir@&$ac_abs_srcdir&;t t
3262s&@top_srcdir@&$ac_top_srcdir&;t t
3263s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3264s&@builddir@&$ac_builddir&;t t
3265s&@abs_builddir@&$ac_abs_builddir&;t t
3266s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3267$ac_datarootdir_hack
3268"
3269eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3270 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3271
3272test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3273 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3274 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3275 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3277which seems to be undefined. Please make sure it is defined" >&5
3278$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3279which seems to be undefined. Please make sure it is defined" >&2;}
3280
3281 rm -f "$ac_tmp/stdin"
3282 case $ac_file in
3283 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3284 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3285 esac \
3286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3287 ;;
3288
3289
3290
3291 esac
3292
3293done # for ac_tag
3294
3295
3296as_fn_exit 0
3297_ACEOF
3298ac_clean_files=$ac_clean_files_save
3299
3300test $ac_write_fail = 0 ||
3301 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3302
3303
3304# configure is writing to config.log, and then calls config.status.
3305# config.status does its own redirection, appending to config.log.
3306# Unfortunately, on DOS this fails, as config.log is still kept open
3307# by configure, so config.status won't be able to write to it; its
3308# output is simply discarded. So we exec the FD to /dev/null,
3309# effectively closing config.log, so it can be properly (re)opened and
3310# appended to by config.status. When coming back to configure, we
3311# need to make the FD available again.
3312if test "$no_create" != yes; then
3313 ac_cs_success=:
3314 ac_config_status_args=
3315 test "$silent" = yes &&
3316 ac_config_status_args="$ac_config_status_args --quiet"
3317 exec 5>/dev/null
3318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3319 exec 5>>config.log
3320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3321 # would make configure fail if this is the last instruction.
3322 $ac_cs_success || as_fn_exit 1
3323fi
3324if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3326$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3327fi
3328
3329
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Build configured successfully" >&5
3331$as_echo "Build configured successfully" >&6; }