diff options
| author | Jim Blandy | 1991-12-04 05:48:56 +0000 |
|---|---|---|
| committer | Jim Blandy | 1991-12-04 05:48:56 +0000 |
| commit | 9453ea7be3e2bdd7a3ac8835f35c9f3463efd21d (patch) | |
| tree | a90343e93dadbba74e3e5ef27724aeb86611384d /src/callproc.c | |
| parent | 63007de27b78d74d2608fb00ddd71b9514317b85 (diff) | |
| download | emacs-9453ea7be3e2bdd7a3ac8835f35c9f3463efd21d.tar.gz emacs-9453ea7be3e2bdd7a3ac8835f35c9f3463efd21d.zip | |
*** empty log message ***
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/src/callproc.c b/src/callproc.c index fb25a647188..11b5c7c4089 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -57,7 +57,7 @@ extern char **environ; | |||
| 57 | 57 | ||
| 58 | #define max(a, b) ((a) > (b) ? (a) : (b)) | 58 | #define max(a, b) ((a) > (b) ? (a) : (b)) |
| 59 | 59 | ||
| 60 | Lisp_Object Vexec_path, Vexec_directory; | 60 | Lisp_Object Vexec_path, Vexec_directory, Vdata_directory; |
| 61 | 61 | ||
| 62 | Lisp_Object Vshell_file_name; | 62 | Lisp_Object Vshell_file_name; |
| 63 | 63 | ||
| @@ -448,7 +448,9 @@ init_callproc () | |||
| 448 | { | 448 | { |
| 449 | register char * sh; | 449 | register char * sh; |
| 450 | register char **envp; | 450 | register char **envp; |
| 451 | Lisp_Object execdir; | 451 | Lisp_Object tempdir; |
| 452 | |||
| 453 | Vdata_directory = Ffile_name_as_directory (build_string (PATH_DATA)); | ||
| 452 | 454 | ||
| 453 | /* Turn PATH_EXEC into a path. `==' is just a string which we know | 455 | /* Turn PATH_EXEC into a path. `==' is just a string which we know |
| 454 | will not be the name of an environment variable. */ | 456 | will not be the name of an environment variable. */ |
| @@ -456,14 +458,22 @@ init_callproc () | |||
| 456 | Vexec_directory = Ffile_name_as_directory (Fcar (Vexec_path)); | 458 | Vexec_directory = Ffile_name_as_directory (Fcar (Vexec_path)); |
| 457 | Vexec_path = nconc2 (decode_env_path ("PATH", ""), Vexec_path); | 459 | Vexec_path = nconc2 (decode_env_path ("PATH", ""), Vexec_path); |
| 458 | 460 | ||
| 459 | execdir = Fdirectory_file_name (Vexec_directory); | 461 | tempdir = Fdirectory_file_name (Vexec_directory); |
| 460 | if (access (XSTRING (execdir)->data, 0) < 0) | 462 | if (access (XSTRING (tempdir)->data, 0) < 0) |
| 461 | { | 463 | { |
| 462 | printf ("Warning: executable/documentation dir (%s) does not exist.\n", | 464 | printf ("Warning: arch-dependent data dir (%s) does not exist.\n", |
| 463 | XSTRING (Vexec_directory)->data); | 465 | XSTRING (Vexec_directory)->data); |
| 464 | sleep (2); | 466 | sleep (2); |
| 465 | } | 467 | } |
| 466 | 468 | ||
| 469 | tempdir = Fdirectory_file_name (Vdata_directory); | ||
| 470 | if (access (XSTRING (tempdir)->data, 0) < 0) | ||
| 471 | { | ||
| 472 | printf ("Warning: arch-independent data dir (%s) does not exist.\n", | ||
| 473 | XSTRING (Vdata_directory)->data); | ||
| 474 | sleep (2); | ||
| 475 | } | ||
| 476 | |||
| 467 | #ifdef VMS | 477 | #ifdef VMS |
| 468 | Vshell_file_name = build_string ("*dcl*"); | 478 | Vshell_file_name = build_string ("*dcl*"); |
| 469 | #else | 479 | #else |
| @@ -495,8 +505,12 @@ Initialized from the SHELL environment variable."); | |||
| 495 | Each element is a string (directory name) or nil (try default directory)."); | 505 | Each element is a string (directory name) or nil (try default directory)."); |
| 496 | 506 | ||
| 497 | DEFVAR_LISP ("exec-directory", &Vexec_directory, | 507 | DEFVAR_LISP ("exec-directory", &Vexec_directory, |
| 498 | "Directory that holds programs that come with GNU Emacs,\n\ | 508 | "Directory of architecture-dependent files that come with GNU Emacs,\n\ |
| 499 | intended for Emacs to invoke."); | 509 | especially executable programs intended for Emacs to invoke."); |
| 510 | |||
| 511 | DEFVAR_LISP ("data-directory", &Vdata_directory, | ||
| 512 | "Directory of architecture-independent files that come with GNU Emacs,\n\ | ||
| 513 | intended for Emacs to use."); | ||
| 500 | 514 | ||
| 501 | #ifndef MAINTAIN_ENVIRONMENT | 515 | #ifndef MAINTAIN_ENVIRONMENT |
| 502 | DEFVAR_LISP ("process-environment", &Vprocess_environment, | 516 | DEFVAR_LISP ("process-environment", &Vprocess_environment, |